svelte-gestures
Advanced tools
Changelog
5.0.4
Changelog
5.0.3
x
and y
added to event detail of up, down and move events
GestureCustomEvent
types.Changelog
5.0.1
on:pan
as well as onpan
now.Changelog
4.0.0
To keep versioning according to Svelte itself, I am moving to version 4 straight away. The new version supports correct typing for Svelte 4 (while Svelte 3's namespace is svelte.JSX, Svelte 4 uses svelteHTML) Support for multiple touch-action values added. You can now pass touchAction also as an array. Thanks to xpengy and ewen-lbh for their contribution.
Types fix for usage in svelte templates (no params are no required)
Changelog
1.5.0
composedGesture
lets you combine gestures. You can even use it to maintain scrolling behavior on elements with pan
or shapeGesture
(see example below)shapeGesture
lets you define shape/s to be recognized. Just define shapes by coordinates.