Navigator.maxTouchPoints

Return the maximum number of simultaneous touch contact points are supported by the current device.

Syntax

touchPoints = navigator.maxTouchPoints;

Example

if (navigator.maxTouchPoints > 1) {
  // browser supports multi-touch
}
Specification Status Comment
Pointer Events – Level 2
The definition of 'maxTouchPoints' in that specification.
Working Draft Non-stable version.
Pointer Events
The definition of 'maxTouchPoints' in that specification.
Recommendation Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support35 ?

59

291

11

10 ms

? No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support3535 ?291 2 ? No ?

1. From version 29: this feature is behind the dom.w3c_pointer_events.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

2. See bug 1426786.

Document Tags and Contributors

Last updated by: connorshea,