Touching the handle should keep the control bar visible

Calling stopPropagation() was causing the normal event listeners
to never get the proper events.
This commit is contained in:
Pierre Ossman 2016-11-24 17:03:47 +01:00
parent f5bf2d84ef
commit de315d6216
1 changed files with 6 additions and 0 deletions

View File

@ -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
@ -654,6 +656,8 @@ var UI;
UI.toggleControlbar();
e.preventDefault();
e.stopPropagation();
UI.keepControlbar();
UI.activateControlbar();
}
UI.controlbarGrabbed = false;
},
@ -674,6 +678,8 @@ var UI;
UI.controlbarMouseDownOffsetY = ptr.clientY - bounds.top;
e.preventDefault();
e.stopPropagation();
UI.keepControlbar();
UI.activateControlbar();
},
/* ------^-------