Explorar el Código

Merge pull request #283 from samhed/nomousedrag

Fixed so that viewportDrag works even if no mouse button is selected.
Joel Martin hace 12 años
padre
commit
31164434b2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);