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.

Properties

TouchList.length Read only

The number of Touch objects in the TouchList.

Methods

TouchList.item()

Returns the Touch object at the specified index in the list.

Example

See the example on the main Touch events article.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
TouchList
18
≤18
52
18-24
No
15
10.1
Yes
Yes
6
14
2
Yes
item
18
≤18
52
18-24
No
15
10.1
Yes
Yes
6
14
2
Yes
length
18
≤18
52
18-24
No
15
10.1
Yes
Yes
6
14
2
Yes

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/TouchList