How we built it

UIEvent.sourceCapabilities & InputDeviceCapabilities.firesTouchEvents

The InputDeviceCapabilities API provides details about the physical device responsible for generating an event. InputDeviceCapabilities.firesTouchEvents returns whether this device dispatches touch events. All types of UIEvent now have their own sourceCapabilities attribute which returns the InputDeviceCapabilities associated with the physical device responsible for them.

Comments

Polyfill: https://github.com/WICG/InputDeviceCapabilities/blob/gh-pages/inputdevicecapabilities-polyfill.js

Demo

Documentation

Specification

Editor's draft

Status in Chromium

Enabled by default (launch bug) in:

  • Chrome for desktop release 47
  • Chrome for Android release 47
  • Android WebView release 47

Consensus & Standardization

Owners

Last updated on 2016-02-03