createHandlers
Commons
stable
Builds the internal touch-event handler map (touchstart, touchend, touchmove) from a set of directional callbacks. Used by the v-touch directive to bridge raw touch events with high-level swipe/drag gestures.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- valueITouchHandlers{}
- An object of optional directional callbacks: left, right, up, down, start, move, end.
API
Valeur de retour
La valeur retournée par cet util.
- An object with touchstart, touchend, and touchmove native event handlers ready to be bound to a DOM element.
Usage
Exemples
Extraits de code prêts à coller.
Build touch handlers for swipe detection