Svelte touch gestures

Hey svelte heads! How are you? I was recently looking for a way to add some touch gestures to my application. I was exploring different options but finally I ended up using spring from the svelte/motion library, modifying the code that svelte has on their website. Can you think of a better way to do this?

You can review the code i use for nostree.me here

https://github.com/gzuuus/linktr-nostr/blob/master/src/lib/utils/pannable.ts and used in this component https://github.com/gzuuus/linktr-nostr/blob/master/src/lib/components/event-card.svelte

Reply to this note

Please Login to reply.

Discussion

You’re not a React head?

Sorry jings, I was testing react for a while, but svelte got me hooked 😬

Ironic way to phrase that

Do you mean: https://ionicframework.com/

🤣

XD