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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 18Edge Full support YesFirefox Full support 52
Full support 52
No support 18 — 24
IE No support NoOpera Full support 15Safari No support NoWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 6Opera Android Full support 15Safari iOS Full support YesSamsung Internet Android ?
lengthChrome Full support 18Edge Full support YesFirefox Full support 52
Full support 52
No support 18 — 24
IE No support NoOpera Full support 15Safari No support NoWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 6Opera Android Full support 15Safari iOS Full support YesSamsung Internet Android ?
identifiedTouch
DeprecatedNon-standard
Chrome ? Edge ? Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Edge Mobile ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
itemChrome Full support 18Edge Full support YesFirefox Full support 52
Full support 52
No support 18 — 24
IE No support NoOpera Full support 15Safari No support NoWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 6Opera Android Full support 15Safari iOS Full support YesSamsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.

See also

Étiquettes et contributeurs liés au document

Dernière mise à jour par : fscholz,