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

This commit is contained in:
samhed 2013-07-23 14:26:11 +02:00
parent 0e3d505e54
commit fb4394b10b
1 changed files with 1 additions and 1 deletions

View File

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