diff --git a/js/waveform.js b/js/waveform.js index 200a611..6bb163e 100644 --- a/js/waveform.js +++ b/js/waveform.js @@ -132,9 +132,8 @@ export function drawWaveforms() { // Visible width in steps const visibleSteps = wc.width / pxPerStep; - // Auto-scroll to show latest (only if near the end) - const isNearEnd = state.waveScroll >= state.timeStep - visibleSteps - 2; - if (totalPx > wc.width && isNearEnd) { + // Auto-scroll: always follow the latest data + if (totalPx > wc.width) { state.waveScroll = state.timeStep - visibleSteps; } state.waveScroll = Math.max(0, state.waveScroll);