Skip to content

textmode.js / Textmodifier / touchStarted

Method: touchStarted()

ts
touchStarted(callback): void;

Register the single-callback handler for touch start events.

The callback receives input.touch.TouchEventData containing the touch that triggered the event, all active touches, and the original DOM event. Use this to react when the user places one or more fingers on the canvas.

Parameters

ParameterTypeDescription
callbackTouchEventHandlerHandler to run when a touch starts.

Returns

void

Example