summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-11-24 17:03:47 +0100
committerPierre Ossman <ossman@cendio.se>2016-11-24 17:03:47 +0100
commitde315d62162fe5b16ebbf5cb75cdb29964e67454 (patch)
treebb213ffe3c07913965e5ec2e29bcded5cabe6b3c
parentf5bf2d84ef1bae02dfaff068de7565664a00fba3 (diff)
downloadnovnc-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.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/ui.js b/app/ui.js
index 4bd5f0f..d9142bb 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -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();
},
/* ------^-------