solid-dnd
solid-dnd copied to clipboard
Collision detection should use transformed layouts for droppables
Currently the original layout is used for droppable collision detection, but this can cause unnatural behaviour. For example, when sorting items of different heights.
I was trying to use vertical sorting with draggables of different heights. It seems like this edge is not resolved yet. Draggables with larger heights are overlapped on top of other items.
Reproduction: https://codesandbox.io/s/hardcore-shtern-wlexdo?file=/src/sortable.tsx
Yes. I had some support for that, but removed it to revisit the problem more holistically (see #32).