The maxTouchPoints
read-only property of the Navigator
interface returns the maximum number of simultaneous touch contact points are supported by the current device.
Navigator.maxTouchPoints
Value
A number.
Examples
if (navigator.maxTouchPoints > 1) { // browser supports multi-touch }
Specifications
Specification |
---|
Pointer Events # dom-navigator-maxtouchpoints |
Browser compatibility
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
|
11
10
|
22
|
13
|
37
|
35
|
79
|
22
|
13
|
3.0
|
© 2005–2021 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