From 6a409b954dc0636029cf6202de1775469cc37c56 Mon Sep 17 00:00:00 2001 From: 3dtours Date: Mon, 27 Jul 2026 08:21:26 +0700 Subject: [PATCH] chore: add wiki log --- wiki.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wiki.md b/wiki.md index dc0d22b..5c842b2 100644 --- a/wiki.md +++ b/wiki.md @@ -373,3 +373,8 @@ - **Tóm tắt thay đổi:** Thêm `length_bars` vào midiItems/sections. `useEffect` trên BPM recalc `duration = length_bars * currentSecondsPerBar`. Fix section hardcoded 4s → `4 * secondsPerBar`. - **Các file ảnh hưởng:** `app/static/js/app.jsx` - **Ghi chú/Test (nếu có):** Tạo 8 bars item ở BPM 80 → đổi BPM 120 → item vẫn 8 bars. + +### [2026-07-27 08:20] Task: Fix TempoTrackLane bar spacing on BPM change +- **Tóm tắt thay đổi:** DOM traversal tìm scrollLeft bị gãy do sticky wrapper (tìm nhầm div có `position: sticky` với scrollLeft=0). Xoá DOM lookup, dùng `scrollLeft` prop trực tiếp. Fix cho cả TimelineRuler và TempoTrackLane. +- **Các file ảnh hưởng:** `app/static/js/app.jsx` +- **Ghi chú/Test (nếu có):** Thay đổi BPM → bars trên tempo track lane vẽ đúng khoảng cách.