The TouchList
interface represents a list of contact points with 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.
TouchList.length
Read only
Touch
objects in the TouchList
.TouchList.identifiedTouch()
Touch
item in the list whose identifier matches a specified value.TouchList.item()
Touch
object at the specified index in the list.See the example on the main Touch events article.
Specification | Status | Comment |
---|---|---|
Touch Events – Level 2 | Draft | Non-stable version. |
Touch Events | Recommendation | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 18 | Yes | 52
|
No | 15 | No |
length |
18 | Yes | 52
|
No | 15 | No |
identifiedTouch
|
? | ? | ? | ? | ? | ? |
item |
18 | Yes | 52
|
No | 15 | No |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | Yes | Yes | Yes | 6 | 15 | Yes | ? |
length |
Yes | Yes | Yes | 6 | 15 | Yes | ? |
identifiedTouch
|
? | ? | ? | ? | ? | ? | ? |
item |
Yes | Yes | Yes | 6 | 15 | Yes | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/TouchList