TouchList

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

TouchList 接口代表一个触摸平面上所有触点的列表。例如,如果一个用户用三根手指接触屏幕(或者触控板),与之对应的 TouchList 会包含每根手指的 Touch 对象,总共三个。

属性

TouchList.length 只读

返回TouchListTouch 对象的数量。

方法

TouchList.identifiedTouch() 已弃用

列表中标示符与指定值匹配的第一个Touch 对象会被返回。

TouchList.item()

返回列表中以指定值作为索引的 Touch 对象。

示例

规范

Specification
Touch Events
# touchlist-interface

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
TouchList
item
length

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support
Has more compatibility info.

相关链接