fix: use original baseTrackId for crossOffset, never update drag.trackId

This commit is contained in:
2026-07-29 11:10:59 +07:00
parent 0d763c5a0b
commit e40fdf15ad
3 changed files with 13 additions and 6 deletions
+6
View File
@@ -778,3 +778,9 @@
- **Các file ảnh hưởng:** `app/static/js/app.jsx`
- **Ghi chú/Test (nếu có):** `npm run build` — build passes.
---
### [2026-07-29 11:12] Task: Fix drag cross-track — use ORIGINAL baseTrackId, never update
- **Tóm tắt thay đổi:** Dùng `dragBaseTrackId` từ `multiIds[drag.itemId].trackId` (không đổi) thay vì `drag.trackId` (bị update mỗi mousemove). Xóa `setDraggedSectionItem` update trackId — không cần thiết. crossOffset ổn định xuyên suốt drag.
- **Các file ảnh hưởng:** `app/static/js/app.jsx`
- **Ghi chú/Test (nếu có):** `npm run build` — build passes.
---