The ontouch* APIs default to disabled on desktop

To avoid confusion on touch feature detection, ontouch* members on window, document, and element are disabled by default on desktop devices (Mac, Windows, Linux, ChromeOS). Note that this is not disabling touches, and usage such as `addEventListener("touchstart", ...)` is not being affected.

Comments

* It is suggest to use PointerEvent APIs to better support both touch and mouse. * Site should use navigator.maxTouchPoints for touchscreen detection, and Windows.TouchEvent for TouchEvent feature detection. * These APIs will still be enabled with Chrome DevTools mobile emulation mode

Specification

Editor's draft

Status in Chromium

Blink>Input


Enabled by default (tracking bug) in:

  • Chrome for desktop release 70
  • Opera release 57

Consensus & Standardization

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

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

Owner

Last updated on 2018-09-05