From 9c72ff1bb4fc1ba08acfb0324079da6fe49f3a4a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 24 Aug 2022 13:40:36 -0700 Subject: [PATCH] bugfix: propagate mouse press if any button would Before this commit I was propagating press events only if _all_ buttons would. --- button.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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