svelte-dnd-action icon indicating copy to clipboard operation
svelte-dnd-action copied to clipboard

Event for getting current position

Open Florian-Schoenherr opened this issue 3 years ago • 14 comments

I have implemented some dnd stuff myself and found that I really wish for a way to retrieve the current position while dragging, so that I can potentially reconfigure the dragged element to be position: absolute;. I know you're using translate3d, but that would work the same way. Maybe an event on every movement would be overkill. I also thought about a separate dropzone for whiteboard-like absolute positioned dnd and then just changing the drag-elements type when dragging it over a different dropzone. Then just react to data changes. 🤔

Florian-Schoenherr avatar Jan 13 '21 18:01 Florian-Schoenherr