diff --git a/src/js/control-bar/progress-control/seek-bar.js b/src/js/control-bar/progress-control/seek-bar.js index 24db3f75f..3d000c6d1 100644 --- a/src/js/control-bar/progress-control/seek-bar.js +++ b/src/js/control-bar/progress-control/seek-bar.js @@ -127,7 +127,10 @@ class SeekBar extends Slider { this.player_.scrubbing(true); this.videoWasPlaying = !this.player_.paused(); - this.player_.pause(); + + this.pauseTimer_ = this.setTimeout(function() { + this.player_.pause(); + }, 100); } /** @@ -148,6 +151,11 @@ class SeekBar extends Slider { // Set new time (tell player to seek to new time) this.player_.currentTime(newTime); + + if (event.type === 'mousemove') { + this.clearTimeout(this.pauseTimer_); + this.player_.pause(); + } } /** @@ -161,6 +169,8 @@ class SeekBar extends Slider { handleMouseUp(event) { super.handleMouseUp(event); + this.clearTimeout(this.pauseTimer_); + this.player_.scrubbing(false); if (this.videoWasPlaying) { this.player_.play();