dnd icon indicating copy to clipboard operation
dnd copied to clipboard

Is adding an onDragOver handler possible?

Open tobewisebeforeiamold opened this issue 7 months ago • 2 comments

Description

I was trying to add an onDragOver handler of my own, so I can tell when one Draggable is mostly over other. I was going to use an IntersectionObserver with a percentage so I can tell if one Draggble is X% over the other, but I saw that the Draggable DOM objects aren't actually being dragged. CSS transforms are being used.

I imagine inside of DragDropContext there's some indication of the positions of the various DOM elements. Would it be possible to expose the "virtual" positioning in some way so that we could tell if a Draggable is X% over another Draggable (or maybe even over any DOM element)?

And of course I thank you for taking the time this great package?

tobewisebeforeiamold avatar Jul 13 '24 16:07 tobewisebeforeiamold