TouchList

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

屬性

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

方法

TouchList.identifiedTouch() This is an obsolete API and is no longer guaranteed to work.
Returns the first Touch item in the list whose identifier matches a specified value.
TouchList.item() (en-US)
Returns the Touch object at the specified index in the list.

範例

規範

Specification Status Comment
Touch Events – Level 2 Draft Non-stable version.
Touch Events Recommendation Initial definition.

瀏覽器相容性

BCD tables only load in the browser

參見