Skip to content

textmode.js / Textmodifier / touchEnded

Method: touchEnded()

ts
touchEnded(callback): void;

Register the single-callback handler for touch end events.

This fires after the finger leaves the canvas surface and the browser raises a touchend event. Use it to finalise state such as drawing strokes or completing gestures.

Parameters

ParameterTypeDescription
callbackTouchEventHandlerHandler to run when a touch ends.

Returns

void

Example