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

Specification link


Unknown standards status - check spec link for status

Status in Chromium

Blink>Input


Deprecated (tracking bug)

Consensus & Standardization

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

  • Shipped/Shipping
  • No signal
  • Positive

Owner

Comments

This feature is no longer relevant with the current definition of HTML activation triggering input events. https://html.spec.whatwg.org/multipage/interaction.html#activation-triggering-input-event

Last updated on 2022-03-07