MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

Navigator.maxTouchPoints

这篇翻译不完整。请帮忙从英语翻译这篇文章

返回当前设备能够支持的最大同时触摸的点数。
 

Syntax

touchPoints = navigator.maxTouchPoints;

Example

if (navigator.maxTouchPoints > 1) {
  // 浏览器支持多点触控
}
Specification Status Comment
Pointer Events – Level 2
maxTouchPoints
Working Draft Non-stable version.
Pointer Events
maxTouchPoints
Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 35[1] 29 (29)[2] 10 -ms
11
? 未实现
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
? 未实现

[1] This was implemented in bug 248918.

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

文档标签和贡献者

 此页面的贡献者: gu18168
 最后编辑者: gu18168,