Skip to main content

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.

MDN Reference

Indexable

[index: number]: Touch

Methods

[iterator]()

iterator: ArrayIterator<Touch>;

Returns

ArrayIterator<Touch>


item()

item(index): Touch | null;

The item() method returns the Touch object at the specified index in the TouchList.

MDN Reference

Parameters

ParameterType
indexnumber

Returns

Touch | null

Properties

length

readonly length: number;

The length read-only property indicates the number of items (touch points) in a given TouchList.

MDN Reference