mirror of
https://github.com/aculix/negotium.git
synced 2026-09-11 07:28:17 +00:00
00d1e211fe
The old feedback was a card faded to 0.4 opacity and a 3px line above the target. The fade read as "disabled" rather than "held", and a thin line is a weak signal for where something lands. The dragged card lifts now: full opacity, accent border, raised shadow, a small scale and tilt. Cards it passes slide by the space it vacated, which opens a real gap at the destination. The gap can't disagree with where the card lands, because it is where the card lands. Also fixes something found while building it. targetIndexFor measured live rects, but those rows carry the shift transforms the drag applies, so the midpoints used to pick the target moved as a result of picking it and the choice oscillated. Slot geometry is captured once at drag start, relative to the list so scrolling mid-drag is fine. The displacement rule moves to src/lib/drag.js with tests. Its up/down boundaries are where off-by-ones live.