-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grab not released on mouse up outside dragdroplist #6
Comments
Yes, I got this too on the simple example repl. Drag an item to the bottom of the list and drop and it 'sticks' to the mouse pointer. |
I get this too, has anyone found a fix or workaround? |
Adding this in the component works: https://svelte.dev/repl/03dc6af80d0e4507abbbe80aad079fa5?version=3.43.1 |
Hice Roger-Sa, I had added an on:mouseleave event to the List div, which worked to cancel the drag when you left the div, but your solution is much more as I would expect it to behave. So thanks for sharing! |
steps to reproduce:
expected:
what happens instead:
edit: tested with desktop Chrome and Firefox using a mouse, seems to work fine with touch events on mobile Chrome and Firefox
The text was updated successfully, but these errors were encountered: