react-arborist icon indicating copy to clipboard operation
react-arborist copied to clipboard

Can't cancel dragging after it started

Open goliney opened this issue 6 months ago • 5 comments

I find it impossible to cancel the dragging event. If you change your mind while still holding the mouse button pressed, you can't go back. The item will be dropped anyway.

I tried ESC button, or dragging the item away from the tree container. But the onMove is still fired.

https://github.com/user-attachments/assets/8334116e-a838-421e-8a82-e859baeeb2cc

Expected result:

onMove is not fired if ESC is pressed during the drag or if the item is dropped outside the tree area.

goliney avatar Jul 26 '24 15:07 goliney