Skip to content

Commit e7f049c

Browse files
committed
Fixed WaveformZoomview.enableAutoScroll()
See #536
1 parent 4431316 commit e7f049c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/waveform-zoomview.js

+4
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,10 @@ WaveformZoomView.prototype.updateWaveform = function(frameOffset) {
531531
};
532532

533533
WaveformZoomView.prototype.enableAutoScroll = function(enable, options) {
534+
if (!options) {
535+
options = {};
536+
}
537+
534538
this._autoScroll = enable;
535539

536540
if (objectHasProperty(options, 'offset')) {

0 commit comments

Comments
 (0)