Skip to content

textmode.js / Textmodifier / pinch

Method: pinch()

ts
pinch(callback): void;

Register a callback for pinch gestures, receiving scale deltas.

Pinch gestures involve two touch points. The callback receives the current scale relative to the initial distance and the change since the previous update, enabling zoom interactions.

Parameters

ParameterTypeDescription
callbackTouchPinchHandlerHandler to run when a pinch gesture is detected.

Returns

void

Example