Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!

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.
Editor's Draft Non-stable version.
Pointer Events
The definition of 'maxTouchPoints' in that specification.
Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 35[1] 29 (29)[2] 10 -ms
11
? No support
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 35[1] 29.0 (29)[2] 10 -ms
11
? No support

[1] This was implemented in bug 248918.

[2] Gecko supports this feature behind the preference dom.w3c_pointer_events.enabled, defaulting to false.

ドキュメントのタグと貢献者

 このページの貢献者: AFBarstow, Sebastianz, teoli, kscarfone, kollishivagangadhar, mkato
 最終更新者: AFBarstow,