1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-29 02:57:21 +02:00

Close GH-720: unmute if the user drags the volume bar slider.

This commit is contained in:
Jon 2013-10-01 17:54:59 -07:00 committed by Steve Heffernan
parent 2662ad9c96
commit f07caa2b97

View File

@ -76,6 +76,10 @@ vjs.VolumeBar.prototype.createEl = function(){
};
vjs.VolumeBar.prototype.onMouseMove = function(event) {
if (this.player_.muted()) {
this.player_.muted(false);
}
this.player_.volume(this.calculateDistance(event));
};