TouchList interface represents a list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one 触摸 object for each finger, for a total of three entries.

特性

TouchList.length 只读
The number of 触摸 objects in the TouchList .

方法

TouchList.identifiedTouch()
返回第一 触摸 item in the list whose identifier matches a specified value.
TouchList.item()
返回 触摸 object at the specified index in the list.

范例

example on the main Touch events article .

规范

规范 状态 注释
Touch Events – Level 2 草案 非稳定版本。
触摸事件 推荐 初始定义。

浏览器兼容性

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. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
TouchList Chrome 18 Edge ≤18 Firefox 52
52
不支持 18 — 24
IE No Opera 15 Safari No WebView Android Yes Chrome Android Yes Firefox Android 6 Opera Android 14 Safari iOS Yes Samsung Internet Android Yes
identifiedTouch 弃用 非标 Chrome ? Edge ? Firefox ? IE No Opera ? Safari No WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
item Chrome 18 Edge ≤18 Firefox 52
52
不支持 18 — 24
IE No Opera 15 Safari No WebView Android Yes Chrome Android Yes Firefox Android 6 Opera Android 14 Safari iOS Yes Samsung Internet Android Yes
length Chrome 18 Edge ≤18 Firefox 52
52
不支持 18 — 24
IE No Opera 15 Safari No WebView Android Yes Chrome Android Yes Firefox Android 6 Opera Android 14 Safari iOS Yes Samsung Internet Android Yes

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

非标。预期跨浏览器支持较差。

非标。预期跨浏览器支持较差。

弃用。不要用于新网站。

弃用。不要用于新网站。

另请参阅

元数据

  • 最后修改: