Commit aeee2ec
fix(dnd): use pointerWithin collision detection for cross-container drag
Change from closestCenter to pointerWithin collision detection algorithm.
closestCenter calculates distance from item center to droppable centers,
which doesn't work well when the backlog is below the board - dragging
from backlog to columns often registered the wrong target.
pointerWithin uses cursor position to determine the drop target, which
is more intuitive for vertically stacked containers.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent ce3807a commit aeee2ec
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| |||
0 commit comments