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.
Properties
TouchList.lengthRead only- The number of
Touchobjects in theTouchList.
Methods
TouchList.identifiedTouch()- Returns the first
Touchitem in the list whose identifier matches a specified value. TouchList.item()- Returns the
Touchobject at the specified index in the list.
Example
See the example on the main Touch events article.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Touch Events – Level 2 | Draft | Non-stable version. |
| Touch Events | Recommendation | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
| Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Basic support | 18 | Yes | 52 18 — 24 | No | 15 | No |
length | 18 | Yes | 52 18 — 24 | No | 15 | No |
identifiedTouch | ? | ? | ? | ? | ? | ? |
item | 18 | Yes | 52 18 — 24 | No | 15 | No |
| Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | Opera 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 | ? |
See also
Document Tags and Contributors
Tags:
Contributors to this page:
fscholz,
erikadoyle,
contolini,
jimwmg,
chrisdavidmills,
Sheppy,
AFBarstow,
MattBrubeck,
MHasan,
kscarfone,
imdadvs,
ethertank,
ziyunfei,
jtyjty99999
Last updated by:
fscholz,