mozilla
Your Search Results

    TouchList

    This article is in need of a technical review.

    A TouchList represents a list of all of the points of contact with a touch surface; for example, if the user has three fingers on the screen (or trackpad), the corresponding TouchList would have one Touch object for each finger, for a total of three entries.

    Attributes

    TouchList.length Read only
    The number of Touch objects in the TouchList.

    Methods

    TouchList.identifiedTouch()
    Returns the first Touch item in the list whose identifier matches a specified value.
    TouchList.item()
    Returns the Touch object at the specified index in the list. You can also simply reference the TouchList using array syntax (touchList[x]).

    Example

    See the example on the main Touch events article.

    See also

    Document Tags and Contributors

    Contributors to this page: Sheppy, fscholz, ziyunfei, ethertank, jtyjty99999, kscarfone, imdadvs, MHasan
    Last updated by: fscholz,