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
Browser compatibility
Update compatibility data on GitHub | Desktop | Mobile |
---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | Android webview | Chrome for Android | Firefox for Android | Opera for Android | Safari on iOS | Samsung Internet |
---|
maxTouchPoints | Chrome
Full support
35 | Edge
Full support
12 | Firefox
Full support
59-
Full support
59
-
Full support
29
- 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 Implemented with the vendor prefix: ms
| Opera
Full support
Yes | Safari
No support
No | WebView Android
Full support
37 | Chrome Android
Full support
35 | Firefox Android
Full support
29-
Full support
29
- 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
Yes | Safari iOS
No support
No | Samsung Internet Android
Full support
Yes |
---|
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.