fix waveform overflow if zooming out with scrollbar set to the right