Skip to content
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

Element jumps back and forth between two sortable contexts when dragged above the contexts #1465

Open
mattwhitson opened this issue Jul 30, 2024 · 1 comment

Comments

@mattwhitson
Copy link

mattwhitson commented Jul 30, 2024

Easily reproducable with one of their samples on codesandbox. All I did was add some margin to the top of the board section and then dragged the elements across above the SortableContexts and the draggable elements start to go haywire. Any idea on how to fix, or if not, how to stop the user from dragging elements above the contexts?

dnd-kit-glitch.mp4

Here's a link to the code sandbox if anyone's interested in poking around. Cheers
https://codesandbox.io/p/sandbox/vigilant-cannon-6kh5mx

@AmiciD
Copy link

AmiciD commented Oct 22, 2024

This is probably due to the collision detection strategy did you tried to change it to pointerWithin built in strategy? For me this was the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants