diff --git a/button.lua b/button.lua index d8ab601..7549169 100644 --- a/button.lua +++ b/button.lua @@ -23,15 +23,17 @@ function mouse_press_consumed_by_any_button_handler(State, x, y, mouse_button) if State.button_handlers == nil then return end - local result = false + local button_pressed = false + local consume_press = true for _,ev in ipairs(State.button_handlers) do if x>ev.x and xev.y and y