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

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

touchstartX
requis
number
clientX of the touchstart event.
touchstartY
requis
number
clientY of the touchstart event.
touchmoveX
requis
number
clientX of the most recent touchmove event.
touchmoveY
requis
number
clientY of the most recent touchmove event.
touchendX
requis
number
clientX of the touchend event.
touchendY
requis
number
clientY of the touchend event.
offsetX
requis
number
Horizontal displacement from start to end (touchendX - touchstartX).
offsetY
requis
number
Vertical displacement from start to end (touchendY - touchstartY).

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Reading swipe direction from ITouchData

typescript