Explorar el Código

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

Joel Martin hace 12 años
padre
commit
57430b8c12
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      include/ui.js

+ 2 - 1
include/ui.js

@@ -636,7 +636,8 @@ setViewDrag: function(drag) {
         vmb.style.display = "none";
         vmb.style.display = "none";
     }
     }
 
 
-    if (typeof(drag) === "undefined") {
+    if (typeof(drag) === "undefined" ||
+        typeof(drag) === "object") {
         // If not specified, then toggle
         // If not specified, then toggle
         drag = !UI.rfb.get_viewportDrag();
         drag = !UI.rfb.get_viewportDrag();
     }
     }