Fix connection lines during drag and after drop

Otherkamo-internal
ส่งแล้ว
3 กุมภาพันธ์ 2569 เวลา 00:16 UTC
ผู้เขียน
kamo
ตั้งค่า
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

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์