textmode.js / Textmodifier / touchCancelled
Method: touchCancelled()
ts
touchCancelled(callback): void;Register the single-callback handler for browser-cancelled touches.
Cancellation can occur when the browser takes ownership for scrolling or if the gesture leaves the window. Treat this as an aborted touch and clean up any in-progress state.
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | TouchEventHandler | Handler to run when a touch is cancelled. |
Returns
void