textmode.js / input / touch / TouchRotateEventData
Interface: TouchRotateEventData
Rotate gesture event data describing the angle change between the initial and current segment.
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). |
deltaRotation | number | Change in rotation since the previous callback. |
originalEvent | TouchEvent | Original browser event. |
rotation | number | Total rotation in degrees relative to the initial angle. |
touches | [TouchPosition, TouchPosition] | Touch points participating in the rotation, always two entries. |