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.
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.
- touchstartXrequisnumber
- clientX of the touchstart event.
- touchstartYrequisnumber
- clientY of the touchstart event.
- touchmoveXrequisnumber
- clientX of the most recent touchmove event.
- touchmoveYrequisnumber
- clientY of the most recent touchmove event.
- touchendXrequisnumber
- clientX of the touchend event.
- touchendYrequisnumber
- clientY of the touchend event.
- offsetXrequisnumber
- Horizontal displacement from start to end (touchendX - touchstartX).
- offsetYrequisnumber
- 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