Skip to content

Commit

Permalink
Fixes issue where you toggle mute while dragging which makes the mute…
Browse files Browse the repository at this point in the history
… toggle stop working. fixes #3036
  • Loading branch information
seescode committed Apr 2, 2016
1 parent 6e579ba commit ab8500f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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 @@ -125,8 +126,8 @@ class VolumeMenuButton extends PopupButton {
super.handleClick();
}

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

handleMouseDown(event) {
Expand Down

0 comments on commit ab8500f

Please # to comment.