ITouchData
interface
Touch & Gesture
Touch coordinate snapshot passed to every v-touch handler — records start, move, and end positions plus the X/Y offset deltas.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- touchstartXrequirednumber
- clientX of the touchstart event.
- touchstartYrequirednumber
- clientY of the touchstart event.
- touchmoveXrequirednumber
- clientX of the most recent touchmove event.
- touchmoveYrequirednumber
- clientY of the most recent touchmove event.
- touchendXrequirednumber
- clientX of the touchend event.
- touchendYrequirednumber
- clientY of the touchend event.
- offsetXrequirednumber
- Horizontal displacement from start to end (touchendX - touchstartX).
- offsetYrequirednumber
- Vertical displacement from start to end (touchendY - touchstartY).
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Reading swipe direction from ITouchData