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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user