Fixed predicate and minor propogation issue.

This commit is contained in:
Adam Harrison
2021-11-16 19:12:39 -05:00
parent c58029df8b
commit 18959aebef
3 changed files with 21 additions and 17 deletions
+2 -2
View File
@@ -113,8 +113,8 @@ function keymap.on_key_pressed(k, ...)
end
function keymap.on_mouse_wheel(delta, ...)
return not keymap.on_key_pressed("wheel" .. (delta > 0 and "up" or "down"), delta, ...)
and keymap.on_key_pressed("wheel", delta, ...)
return not (keymap.on_key_pressed("wheel" .. (delta > 0 and "up" or "down"), delta, ...)
or keymap.on_key_pressed("wheel", delta, ...))
end
function keymap.on_mouse_pressed(button, x, y, clicks)