dnd-kit
dnd-kit copied to clipboard
Get dropped item coordinates?
I'm trying to compute the item position when dropping it.
The event object doesn't give me enough info:
How can I do this?
As a work around, I'm tracking mouse position:
useEventListener("mousemove", (event: any) => {
setMouseCoord({ x: event.clientX, y: event.clientY });
});
Having the item position (not only delta) in the event object would be very helpful