Element: touchend event
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("Touch Events")}}
The touchend event fires when one or more touch points are removed from the touch surface. Remember that it is possible to get a [touchcancel](/en-US/docs/Web/API/Element/touchcancel_event) event instead.
Syntax
Use the event name in {{domxref("EventTarget/addEventListener", "addEventListener()")}}:
js-nolint
addEventListener("touchend", (event) => { })Alternatively, assign to the event handler property of the interface:
js-nolint
ontouchend = (event) => { }Event type
A {{domxref("TouchEvent")}}. Inherits from {{domxref("Event")}}.
{{InheritanceDiagram("TouchEvent")}}
Examples
Code samples for those events are available on the dedicated page: Touch events.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- Touch events