fix: redraw canvas when section/MIDI item duration changes on resize

Add setCanvasRedrawCount after updateActiveTracks in resize handler
so WaveformLane re-renders with updated notes/waveform.
This commit is contained in:
2026-07-25 11:33:35 +07:00
parent a956ae407c
commit e0531be65b
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -10611,6 +10611,7 @@ const App = () => {
? { ...t, sections: items }
: { ...t, midiItems: items };
}));
setCanvasRedrawCount(n => n + 1);
const edgePx = (resize.side === 'left' ? Math.max(0, time) : time) * zoom;
const keepMargin = 80;
if (edgePx > scrollLeft + rect.width - keepMargin) {