Navigator.maxTouchPoints

The maxTouchPoints read-only property of the Navigator interface returns 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
}

Specifications

Specification Status Comment
Pointer Events – Level 2
The definition of 'maxTouchPoints' in that specification.
Recommendation Non-stable version.
Pointer Events
The definition of 'maxTouchPoints' in that specification.
Obsolete Initial definition.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
maxTouchPointsChrome Full support 35Edge Full support 12Firefox Full support 59
Full support 59
Full support 29
Disabled
Disabled 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.
IE Full support 11
Full support 11
Full support 10
Prefixed
Prefixed Implemented with the vendor prefix: ms
Opera Full support YesSafari No support NoWebView Android Full support 37Chrome Android Full support 35Firefox Android Full support 29
Notes Disabled
Full support 29
Notes Disabled
Notes See bug 1426786.
Disabled 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.
Opera Android Full support YesSafari iOS No support NoSamsung Internet Android Full support 3.0

Legend

Full support
Full support
No support
No support
See implementation notes.
See implementation notes.
User must explicitly enable this feature.
User must explicitly enable this feature.
Requires a vendor prefix or different name for use.
Requires a vendor prefix or different name for use.