User activation through long-press gesture

The long-press gesture should be considered a user activation because it indicates user's interaction with the page. This would allow a web app to call restricted APIs like navigator.vibrate() on long-press to match native behavior.

Demo

Specification

Working draft or equivalent

Status in Chromium

Blink>Input


Enabled by default (tracking bug) in:

  • Chrome for desktop release 68
  • Chrome for Android release 68
  • Chrome for iOS release 68
  • Android WebView release 68
  • Opera release 55
  • Opera for Android release 55

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Shipped
  • No public signals
  • No public signals
  • Positive

Owner

Last updated on 2018-05-02