L'événement touchend
est déclenché quand un point de contact est retiré de la surface.
Informations générales
- Spécification
- Touch Events
- Interface
TouchEvent
- Bubbles
- Oui
- Cancelable
- Oui
- Target
- Document, Element
- Default Action
- indéfinie
Propriétés
Property | Type | Description |
---|---|---|
target Lecture seule |
EventTarget | The event target (the topmost target in the DOM tree). |
type Lecture seule |
DOMString | The type of event. |
bubbles Lecture seule |
Boolean | Whether the event normally bubbles or not. |
cancelable Lecture seule |
Boolean | Whether the event is cancellable or not. |
view Lecture seule |
WindowProxy | document.defaultView (window of the document) |
detail Lecture seule |
long (float) | 0. |
touches Lecture seule |
TouchList | A list of Touch es for every point of contact currently touching the surface. |
targetTouches Lecture seule |
TouchList | A list of Touch es for every point of contact that is touching the surface and started on the element that is the target of the current event. |
changedTouches Lecture seule |
TouchList | A list of Touch es for every point of contact which contributed to the event.For the touchstart event this must be a list of the touch points that just became active with the current event. For the touchmove event this must be a list of the touch points that have moved since the last event. For the touchend and touchcancel events this must be a list of the touch points that have just been removed from the surface. |
ctrlKey Lecture seule |
boolean | true if the control key was down when the event was fired. false otherwise. |
shiftKey Lecture seule |
boolean | true if the shift key was down when the event was fired. false otherwise. |
altKey Lecture seule |
boolean | true if the alt key was down when the event was fired. false otherwise. |
metaKey Lecture seule |
boolean | true if the meta key was down when the event was fired. false otherwise. |
Exemples
Des exemples d'implémentation de cet événement sont disponibles : Touch events.
Compatibilité des navigateurs
Nous convertissons les données de compatibilité dans un format JSON.
Ce tableau de compatibilité utilise encore l'ancien format
car nous n'avons pas encore converti les données qu'il contient.
Vous pouvez nous aider en contribuant !
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | 22.0 | (Oui) | 18.0 (18.0)[1] 52.0 (52.0)[2] |
Pas de support | Pas de support | Pas de support |
Feature | Android | Android Webview | Chrome for Android | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|---|---|
Basic support | (Oui) | (Oui) | (Oui) | (Oui) | 6.0 (6.0) | (Oui) | 11 | (Oui) | (Oui) |
[1] Les Touch events ont été implémentés dans Gecko 18.0, mais ont été supprimés dans la version 24.0 (Firefox 24.0 / Thunderbird 24.0 / SeaMonkey 2.21) dans la version bureau en raison de problèmes d'incompatibilités (bug 888304).
[2] Depuis 52.0, le support des Touch events a été réparé et réactivé dans les versions bureau de Windows.