TouchList
The 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 Touch object for each finger, for a total of three entries.
Indexable
[index: number]: Touch
Methods
[iterator]()
iterator: ArrayIterator<Touch>;
Returns
item()
item(index): Touch | null;
The item() method returns the Touch object at the specified index in the TouchList.
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
Touch | null
Properties
length
readonly length: number;
The length read-only property indicates the number of items (touch points) in a given TouchList.