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
只读-
返回
TouchList
中Touch
对象的数量。
方法
TouchList.identifiedTouch()
已弃用-
列表中标示符与指定值匹配的第一个
Touch
对象会被返回。 TouchList.item()
-
返回列表中以指定值作为索引的
Touch
对象。
示例
参考这个主要 Touch 事件的示例.
规范
Specification |
---|
Touch Events # touchlist-interface |
浏览器兼容性
Report problems with this compatibility data on GitHubLegend
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.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.