For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface 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

interface TouchList {
    length: number;
    "[iterator]"(): ArrayIterator<Touch>;
    item(index: number): Touch | null;
    [index: number]: Touch;
}

Indexable

Index
length: number

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

MDN Reference

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

    MDN Reference

    Parameters

    • index: number

    Returns Touch | null

Was this helpful?