textmode.js / input / touch / TouchPinchEventData
Interface: TouchPinchEventData
Pinch gesture event data describing the scaling factor between the initial and current distance
Properties
| Property | Type | Description |
|---|---|---|
center | object | Centre of the gesture in grid coordinates |
center.x | number | Grid X coordinate (column) |
center.y | number | Grid Y coordinate (row) |
deltaScale | number | Scale delta compared to the previous callback |
originalEvent | TouchEvent | Original browser event |
scale | number | Scale factor relative to the initial distance (1 == unchanged) |
touches | [TouchPosition, TouchPosition] | Touch points participating in the pinch, always two entries |