New issue
Advanced search Search tips

Issue 836401 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 826293



Sign in to add a comment

Treat long-press gesture as a user activation

Project Member Reported by mustaq@chromium.org, Apr 24 2018

Issue description

Currently a web app cannot call navigator.vibrate() on a long-press because Chromium doesn't treat a long-press as a user activation.  As a result, it is impossible for a web app to match native Android/iOS behavior.

This came up from a web developer recently in  Issue 829145  #c6.

If the long-press is considered a user gesture, a web app can vibrate the device through a "contextmenu" handler.  It seems there is no good reason not to support this use case.

Repro: https://output.jsbin.com/bonadab
(Works in Firefox.  Not applicable for Edge, doesn't seem to support vibration.)
 

Comment 1 by mustaq@chromium.org, Apr 24 2018

Blocking: 826293
Labels: M-68
Status: Fixed (was: Started)

Sign in to add a comment