The maxTouchPoints
read-only property of the Navigator
interface returns the maximum number of simultaneous touch contact points are supported by the current device.
The maxTouchPoints
read-only property of the Navigator
interface returns the maximum number of simultaneous touch contact points are supported by the current device.
A number.
js
if (navigator.maxTouchPoints > 1) { // browser supports multi-touch }
Specification |
---|
Pointer Events # dom-navigator-maxtouchpoints |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
maxTouchPoints |
35 | 12 | 59 | 1110 | 22 | 13 | 37 | 35 | 79 | 22 | 13 | 3.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/maxTouchPoints