Closed Galower1 closed 1 year ago
Because you have an image, the browser default drag and drop behaviour is getting in the way. Set pointer-events-none
on the image class and it should work as expected.
Because you have an image, the browser default drag and drop behaviour is getting in the way. Set
pointer-events-none
on the image class and it should work as expected.
Thank you! it works perfectly now.
Here I have the parent component
ChatWindow
which includes the DragDropProvider and the DragDropSensorsAnd the child component
UserAvatar
Once I stop dragging the component, this one seems to keep following the mouse cursor until I do a left click.
The site examples seem to drop off fine as soon as I stop dragging.
Tried adding the
DragOverlay
component but it didn't change the behavior apart from releasing the component on where I click with the mouse.