docs.rodeo

MDN Web Docs mirror

Element: touchcancel event

{{APIRef}} 

The touchcancel event is fired when one or more touch points have been disrupted in an implementation-specific manner.

Some examples of situations that will trigger a touchcancel event:

Syntax

Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}} , or set an event handler property.

addEventListener("touchcancel", (event) => {});

ontouchcancel = (event) => {};

Event type

A {{domxref("TouchEvent")}} . Inherits from {{domxref("Event")}} .

{{InheritanceDiagram("TouchEvent")}} 

Event properties

This interface inherits properties from its parent, {{domxref("UIEvent")}}  and {{domxref("Event")}} .

Examples

Code samples for those events are available on the dedicated page: Touch events.

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

In this article

View on MDN