Skip to content

textmode.js / input / touch / TouchPinchEventData

Interface: TouchPinchEventData

Pinch gesture event data describing the scaling factor between the initial and current distance.

Properties

PropertyTypeDescription
centerobjectCentre of the gesture in grid coordinates.
center.xnumberGrid X coordinate (column).
center.ynumberGrid Y coordinate (row).
deltaScalenumberScale delta compared to the previous callback.
originalEventTouchEventOriginal browser event.
scalenumberScale factor relative to the initial distance (1 == unchanged).
touches[TouchPosition, TouchPosition]Touch points participating in the pinch, always two entries.