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.

interface TouchList {
    length: number;
    item(index: number): null | Touch;
    [index: number]: Touch;
}

可索引

属性

方法

属性

length: number

方法

  • 参数

    • index: number

    返回 null | Touch