浏览代码

Fixed so that viewportDrag works even if no mouse button is selected.

samhed 12 年之前
父节点
当前提交
fb4394b10b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/input.js

+ 1 - 1
include/input.js

@@ -543,7 +543,7 @@ function onMouseButton(e, down) {
     }
     //Util.Debug("mouse " + pos.x + "," + pos.y + " down: " + down +
     //           " bmask: " + bmask + "(evt.button: " + evt.button + ")");
-    if (bmask > 0 && conf.onMouseButton) {
+    if (conf.onMouseButton) {
         Util.Debug("onMouseButton " + (down ? "down" : "up") +
                    ", x: " + pos.x + ", y: " + pos.y + ", bmask: " + bmask);
         conf.onMouseButton(pos.x, pos.y, down, bmask);