Nice!
I searched Google a little and couldn't find a simpler solution until now for React.
The only thing I changed was the "if" inside "handleDragEnd" that I removed, and I added "setIsDragging(true)" inside handleDragStart for the pointer effect when mousedown but with no movement
Don't know though if those changes have any side effects heh. I tested and it is all fine here
EDIT: also applied the draging style to the wrapper switching between "cursor: grab" and "cursor: grabbing"
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice!
I searched Google a little and couldn't find a simpler solution until now for React.
The only thing I changed was the "if" inside "handleDragEnd" that I removed, and I added "setIsDragging(true)" inside handleDragStart for the pointer effect when mousedown but with no movement
Don't know though if those changes have any side effects heh. I tested and it is all fine here
EDIT: also applied the draging style to the wrapper switching between "cursor: grab" and "cursor: grabbing"