mirror of
https://github.com/videojs/video.js.git
synced 2025-04-17 12:06:22 +02:00
Added Slider.onMouseMove to fix breaking test
This commit is contained in:
parent
8b5eb5089f
commit
49eeb600fd
@ -26,10 +26,11 @@ vjs.Slider = vjs.Component.extend({
|
||||
|
||||
player.on(this.playerEvent, vjs.bind(this, this.update));
|
||||
|
||||
this.boundEvents = {
|
||||
move: vjs.bind(this, this.onMouseMove),
|
||||
end: vjs.bind(this, this.onMouseUp)
|
||||
};
|
||||
this.boundEvents = {};
|
||||
|
||||
|
||||
this.boundEvents.move = vjs.bind(this, this.onMouseMove);
|
||||
this.boundEvents.end = vjs.bind(this, this.onMouseUp);
|
||||
}
|
||||
});
|
||||
|
||||
@ -60,6 +61,9 @@ vjs.Slider.prototype.onMouseDown = function(event){
|
||||
this.onMouseMove(event);
|
||||
};
|
||||
|
||||
// To be overridden by a subclass
|
||||
vjs.Slider.prototype.onMouseMove = function(){};
|
||||
|
||||
vjs.Slider.prototype.onMouseUp = function() {
|
||||
vjs.unblockTextSelection();
|
||||
vjs.off(document, 'mousemove', this.boundEvents.move, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user