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.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

touchstartX
required
number
clientX of the touchstart event.
touchstartY
required
number
clientY of the touchstart event.
touchmoveX
required
number
clientX of the most recent touchmove event.
touchmoveY
required
number
clientY of the most recent touchmove event.
touchendX
required
number
clientX of the touchend event.
touchendY
required
number
clientY of the touchend event.
offsetX
required
number
Horizontal displacement from start to end (touchendX - touchstartX).
offsetY
required
number
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

typescript