dnd
dnd copied to clipboard
Is adding an onDragOver handler possible?
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?