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

This commit is contained in:
Joel Martin 2012-10-19 12:18:21 -05:00
parent e881ce5a1b
commit 57430b8c12
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}