Commit 57430b8c authored by Joel Martin's avatar Joel Martin

ui.js: fix drag button so it can be toggled off.

parent e881ce5a
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment