Skip to content

textmode.js / Textmodifier / tap

Method: tap()

ts
tap(callback): void;

Register a callback for tap gestures.

A tap is fired when the user quickly touches and releases the canvas without travelling far. Use input.touch.TouchTapEventData.taps to determine whether the gesture is a single or multi tap.

Parameters

ParameterTypeDescription
callbackTouchTapHandlerHandler to run when a tap gesture is detected.

Returns

void

Example