Nos bénévoles n'ont pas encore traduit cet article en Français. Inscrivez-vous et aidez-nous à réaliser cette tâche !
Vous pouvez également lire cet article en English (US).

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.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.

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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support18 Yes

52

18 — 24

No15 No
length18 Yes

52

18 — 24

No15 No
identifiedTouch ? ? ? ? ? ?
item18 Yes

52

18 — 24

No15 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes615 Yes ?
length Yes Yes Yes615 Yes ?
identifiedTouch ? ? ? ? ? ? ?
item Yes Yes Yes615 Yes ?

See also

Étiquettes et contributeurs liés au document

Dernière mise à jour par : fscholz,