Closed kfkkail closed 3 years ago
Hi 👋
I'm not on my computer right now and will not have access to it in the coming days but:
did you try to call e.stopPropagation()
on the onMouseDown
handler of the button?
That looks to help. Thanks for the suggestion.
Describe the bug On a non-touch device, the 1 pixel that is used to start the drag gesture is too sensitive when the SortableItem has other elements to interact with. Buttons / Inputs, etc.
To Reproduce Steps to reproduce the behavior:
Expected behavior When interacting with the elements, a drag gesture should not be triggered. Maybe adding the ability to decrease the sensitivity on non-touch devices would help with this scenario.
https://codesandbox.io/s/bold-resonance-5ke7q?file=/src/App.tsx