Skip to content

Commit

Permalink
Touching the handle should keep the control bar visible
Browse files Browse the repository at this point in the history
Calling stopPropagation() was causing the normal event listeners
to never get the proper events.
  • Loading branch information
CendioOssman committed Nov 24, 2016
1 parent f5bf2d8 commit de315d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ var UI;

e.preventDefault();
e.stopPropagation();
UI.keepControlbar();
UI.activateControlbar();
},

// Move the handle but don't allow any position outside the bounds
Expand Down Expand Up @@ -654,6 +656,8 @@ var UI;
UI.toggleControlbar();
e.preventDefault();
e.stopPropagation();
UI.keepControlbar();
UI.activateControlbar();
}
UI.controlbarGrabbed = false;
},
Expand All @@ -674,6 +678,8 @@ var UI;
UI.controlbarMouseDownOffsetY = ptr.clientY - bounds.top;
e.preventDefault();
e.stopPropagation();
UI.keepControlbar();
UI.activateControlbar();
},

/* ------^-------
Expand Down

0 comments on commit de315d6

Please sign in to comment.