nx.js
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.

MDN Reference

Implements

Indexable

[index: number]: Touch

Constructors

new TouchList()

new TouchList(): TouchList

Returns

TouchList

Properties

PropertyModifierTypeDescription
lengthreadonlynumberMDN Reference

Methods

[iterator]()

[iterator](): IterableIterator<Touch>

Returns

IterableIterator<Touch>

Implementation of

globalThis.TouchList.[iterator]


item()

item(index): null | Touch

MDN Reference

Parameters

ParameterType
indexnumber

Returns

null | Touch

Implementation of

globalThis.TouchList.item

On this page