Skip to content

Commit 3833236

Browse files
committed
Prevent auto-scroll when using auto zoom level
See #536
1 parent aab9cea commit 3833236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/waveform-zoomview.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ WaveformZoomView.prototype.getPlayheadClickTolerance = function() {
281281
WaveformZoomView.prototype._syncPlayhead = function(time) {
282282
this._playheadLayer.updatePlayheadTime(time);
283283

284-
if (this._autoScroll) {
284+
if (this._autoScroll && !this._zoomLevelAuto) {
285285
// Check for the playhead reaching the right-hand side of the window.
286286

287287
const pixelIndex = this.timeToPixels(time);

0 commit comments

Comments
 (0)