textmode.js / input / touch / TouchSwipeEventData
Interface: TouchSwipeEventData
Swipe event data reported when the finger travels a minimum distance within a time window.
Properties
| Property | Type | Description |
|---|---|---|
direction | object | Normalised swipe direction vector. |
direction.x | number | - |
direction.y | number | - |
distance | number | Total distance travelled in CSS pixels. |
originalEvent | TouchEvent | Original browser event. |
touch | TouchPosition | Touch point at the end of the swipe. |
velocity | object | Velocity in CSS pixels per millisecond. |
velocity.x | number | Velocity in X direction. |
velocity.y | number | Velocity in Y direction. |