diff options
author | Pierre Ossman <ossman@cendio.se> | 2016-11-24 17:03:47 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2016-11-24 17:03:47 +0100 |
commit | de315d62162fe5b16ebbf5cb75cdb29964e67454 (patch) | |
tree | bb213ffe3c07913965e5ec2e29bcded5cabe6b3c | |
parent | f5bf2d84ef1bae02dfaff068de7565664a00fba3 (diff) | |
download | novnc-de315d62162fe5b16ebbf5cb75cdb29964e67454.tar.gz |
Touching the handle should keep the control bar visible
Calling stopPropagation() was causing the normal event listeners
to never get the proper events.
-rw-r--r-- | app/ui.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(); }, /* ------^------- |