From 24dff158fa308749db06606eefaadda2cf2f3081 Mon Sep 17 00:00:00 2001 From: Jacques Caron Date: Fri, 12 Dec 2014 11:54:55 +0000 Subject: [PATCH] Add vjs-scrubbing class to player while scrubbing --- src/js/control-bar/progress-control.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/control-bar/progress-control.js b/src/js/control-bar/progress-control.js index 360d60e76..8494fda8e 100644 --- a/src/js/control-bar/progress-control.js +++ b/src/js/control-bar/progress-control.js @@ -75,6 +75,7 @@ vjs.SeekBar.prototype.onMouseDown = function(event){ vjs.Slider.prototype.onMouseDown.call(this, event); this.player_.scrubbing = true; + this.player_.addClass('vjs-scrubbing'); this.videoWasPlaying = !this.player_.paused(); this.player_.pause(); @@ -94,6 +95,7 @@ vjs.SeekBar.prototype.onMouseUp = function(event){ vjs.Slider.prototype.onMouseUp.call(this, event); this.player_.scrubbing = false; + this.player_.removeClass('vjs-scrubbing'); if (this.videoWasPlaying) { this.player_.play(); }