Fix connection lines during drag and after drop

Otherkamo-internal
Shipped
3 февраля 2026 г. в 00:16 UTC
Author
kamo
Commit
89e89e2

- Use uncontrolled Draggable (defaultPosition, no position) so DOM updates every frame during drag; sync state only on onStop - Store node positions in state (nodePositions) updated every frame in rAF so lines re-render and stay attached to source and destination - Store width/height from getBoundingClientRect; use height/2 for line end so lines hit vertical center of target card - Compute connection offset from DOM position when starting a connection so alignment is correct after items have been moved

All changes

Как вы видите судоходство?

Каждое из этих обновлений автоматически попадает в ваше рабочее пространство. Начните бесплатно и смотрите, как он растет неделю за неделей.

Начните бесплатно навсегдаПосмотреть цены