react-drag-drop-container icon indicating copy to clipboard operation
react-drag-drop-container copied to clipboard

OnDragStart fired at OnClick

Open kadariuk opened this issue 6 years ago • 2 comments

When I do a click on DragDropContainer onDragStart and onClick are fired but not onDragEnd, I think would be useful distinct between onClick and onDragStart, firing onDragStart only when the DragDropContainer is moved of some pixels

kadariuk avatar Nov 27 '18 11:11 kadariuk

For anyone is interested in this, onDrag method seems to fire only when onDrag start for real and not to onClick... so you can use this method with state o global variable to properly catch dragStart.

kadariuk avatar Nov 27 '18 13:11 kadariuk

the problem using onDrag is that it triggers every time that the cursor moves... I am having the same issue and from what I understand the real problem is that onDragEnd is not being called if you dont move the mouse after start dragging (simple click).

Thorvarium avatar Mar 22 '22 02:03 Thorvarium