DEV Community

Discussion on: Overhauling our collision engine

Collapse
 
oaxoa profile image
Pierluigi Pesenti

Thanks Alex for your great work. Regarding the last problem illustrated "dragging a big element inside a smaller droppable area" I think there should be a third way: using the mouse position to determine the selected droppable.
When elements are weirdly sized like in your example (or in the project I am working on right now) it is much easier for the user to just place the cursor over the desired target. It simply feels good without fancy algorithms. No need to care for overlaps. I would actually suggest it as default but even just having the option would be great.
Ty