The InputDeviceCapabilities()
constructor creates a new InputDeviceCapabilities
object provides information about the physical device responsible for generating a touch event.
var inputDeviceCapabilities = new InputDeviceCapabilities([InputDeviceCapabilitiesInit])
An instance of the InputDeviceCapabilities
interface.
InputDeviceCapabilitiesInit
Optional
fireTouchEvents
: A Boolean
that indicates whether the device dispatches touch events.Specification | Status | Comment |
---|---|---|
InputDeviceCapabilities | Draft | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 47 | ? | ? | ? | ? | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | 47 | 47 | ? | ? | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/InputDeviceCapabilities/InputDeviceCapabilities