TouchList

TouchList 介面表示了一個觸控平面上所有觸碰點的列表;舉例來說,假如使用者有三隻手指於觸控平面(如觸控螢幕或是觸控板)上,則其相對應的 TouchList 物件中就會分別有三個 Touch (en-US) 物件各代表一個手指的觸碰。

屬性

TouchList.length (en-US) Read only

The number of Touch (en-US) objects in the TouchList.

方法

TouchList.identifiedTouch() 已棄用

Returns the first Touch (en-US) item in the list whose identifier matches a specified value.

TouchList.item() (en-US)

Returns the Touch (en-US) object at the specified index in the list.

範例

規範

Specification
Touch Events
# touchlist-interface

瀏覽器相容性

BCD tables only load in the browser

參見