voxolith

PinchEvent

One step of a two-finger pinch or a ctrl+wheel (trackpad) pinch. Position in client pixels.

Defined in: engine/src/input/gestures.ts:60

Properties

PropertyTypeDescriptionDefined in
dxnumberMidpoint movement since the previous pinch event.engine/src/input/gestures.ts:64
dynumber-engine/src/input/gestures.ts:65
rationumberScale change since the previous pinch event; > 1 spreads the fingers.engine/src/input/gestures.ts:62
source"touch" | "wheel"A wheel pinch has no midpoint movement (dx, dy are 0).engine/src/input/gestures.ts:70
xnumberMidpoint of the two fingers, or the cursor for a wheel pinch.engine/src/input/gestures.ts:67
ynumber-engine/src/input/gestures.ts:68

On this page