Skip to content

textmode.js / Textmodifier / longPress

Method: longPress()

ts
longPress(callback): void;

Register a callback for long press gestures.

A long press is emitted when the user keeps a finger on the canvas without moving beyond the configured tolerance. The event includes the press duration in milliseconds.

Parameters

ParameterTypeDescription
callbackTouchLongPressHandlerHandler to run when a long press gesture is detected.

Returns

void

Example