react-drag-drop-container
react-drag-drop-container copied to clipboard
OnDragStart fired at OnClick
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
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.
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).