Element: touchcancel event

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 addEventListener(), or set an event handler property.

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

ontouchcancel = (event) => { }

Event type

A TouchEvent. Inherits from Event.

EventUIEventTouchEvent

Examples

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

Specifications