Classes
TouchList
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.
Implements
Indexable
[index
: number
]: Touch
Constructors
new TouchList()
new TouchList(): TouchList
Returns
Properties
Property | Modifier | Type | Description |
---|---|---|---|
length | readonly | number | MDN Reference |
Methods
[iterator]()
[iterator](): ArrayIterator
<Touch
>
Returns
ArrayIterator
<Touch
>
Implementation of
globalThis.TouchList.[iterator]
item()
item(index
): null
| Touch
Parameters
Parameter | Type |
---|---|
index | number |
Returns
null
| Touch
Implementation of
globalThis.TouchList.item