solid-dnd icon indicating copy to clipboard operation
solid-dnd copied to clipboard

Collision detection should use transformed layouts for droppables

Open martinpengellyphillips opened this issue 3 years ago • 2 comments

Currently the original layout is used for droppable collision detection, but this can cause unnatural behaviour. For example, when sorting items of different heights.

martinpengellyphillips avatar Jul 11 '21 20:07 martinpengellyphillips

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

hnagrath09 avatar May 09 '22 17:05 hnagrath09

Yes. I had some support for that, but removed it to revisit the problem more holistically (see #32).

martinpengellyphillips avatar May 09 '22 17:05 martinpengellyphillips