Closed jessecoleman closed 2 weeks ago
Of course I spend days debugging and writing testing structs before posting this, and then within hours find the solution, lol. The issue seemed to be missing a touch-action: none
css style on the board-inner
component. I have no idea why this only manifested after upgrading the svelte version, oh well.
I'll leave this up in case others run into the same issue, or want to see my reference implementation with click handling and more complex interactions.
I also think it would be worth while to update the library for the new Svelte 5 event handling syntax at some point, but that's not blocking me at the moment.
Want to preface by saying this library has been great for my needs, so thanks for all the hard work on it!
I am trying to migrate my site https://gramjam.app to svelte 5, and noticing some changes in the drag behavior before and after bumping the version. I don't know if this is a bug in svelte or in this library, but I'm noticing that when using a touch input, the
on:neodrag:end
isn't always being called and the dragging gets "stuck". This could also be a bug in my user code. This could be entirely a red-herring, but maybe the binding methods event binding needs to update to match the new svelte5 convention?Here's a link to the svelte 5 version: https://svelte5.word-crush.pages.dev/classic (only seems to repro on a touch screen)
Screen recording (I added a little debug overlay to see the drag events as they fire (only printing the first
on:drag
)).https://github.com/user-attachments/assets/0905db14-da6e-4393-92f9-2db432a3e8bc
Here's a (truncated) sample of the code: