summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2012-10-19 12:18:21 -0500
committerJoel Martin <github@martintribe.org>2012-10-19 12:18:21 -0500
commit57430b8c120f2330820fb2a6c7b37c59157cc6a8 (patch)
tree108085f59a77b62c3c7ffd81cbe231eb40477322
parente881ce5a1bc1641d24630b32ae067637a1ec99a7 (diff)
downloadnovnc-57430b8c120f2330820fb2a6c7b37c59157cc6a8.tar.gz
ui.js: fix drag button so it can be toggled off.
-rw-r--r--include/ui.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ui.js b/include/ui.js
index f6eda04..25bf162 100644
--- a/include/ui.js
+++ b/include/ui.js
@@ -636,7 +636,8 @@ setViewDrag: function(drag) {
vmb.style.display = "none";
}
- if (typeof(drag) === "undefined") {
+ if (typeof(drag) === "undefined" ||
+ typeof(drag) === "object") {
// If not specified, then toggle
drag = !UI.rfb.get_viewportDrag();
}