Skip to content

Commit

Permalink
@seescode fixed dragging on mute toggle changing the volume. Fixes #3036
Browse files Browse the repository at this point in the history
. Closes #3228
  • Loading branch information
seescode authored and gkatsev committed Apr 4, 2016
1 parent 471529b commit 4e45d21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CHANGELOG
## HEAD (Unreleased)
* @vtytar fixed auto-setup failing if taking too long to load ([view](http://github.com/videojs/video.js/pull/3233))
* @seescode fixed css failing on IE8 due to incorrect ie8 hack ([view](http://github.com/videojs/video.js/pull/3226))
* @seescode fixed dragging on mute toggle changing the volume ([view](http://github.com/videojs/video.js/pull/3228))

--------------------

Expand Down
3 changes: 2 additions & 1 deletion src/js/control-bar/volume-menu-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class VolumeMenuButton extends PopupButton {

popup.addChild(vb);

this.menuContent = popup;
this.volumeBar = vb;

this.attachVolumeBarEvents();
Expand All @@ -126,7 +127,7 @@ class VolumeMenuButton extends PopupButton {
}

attachVolumeBarEvents() {
this.on(['mousedown', 'touchdown'], this.handleMouseDown);
this.menuContent.on(['mousedown', 'touchdown'], Fn.bind(this, this.handleMouseDown));
}

handleMouseDown(event) {
Expand Down

0 comments on commit 4e45d21

Please sign in to comment.