A (work-in-progress) collection of gestures recognisers for Svelte components.
Each recogniser is implemented as an action that emits custom events. Pointer events are used where possible, falling back to mouse and touch events.
This action fires a
tap event when the user taps on an element with either a mouse or a finger (or other pointing device). If the pointer is down for more than 300ms, it doesn't count, unlike with
Pressing the spacebar on a focused button will also fire a
tap event. Taps on disabled form elements are disregarded.
event.detail object has
y properties corresponding to
clientY. If the original event was a spacebar keypress, both are
tap the button