From aadc50f3b6d953ce0eaff75dec029aaf3a93324a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 23 Aug 2022 09:40:48 -0700 Subject: [PATCH] allow buttons to interrupt events Most button onpress1 handlers will want to return true. --- button.lua | 2 +- edit.lua | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/button.lua b/button.lua index 5042ae6..66a2c00 100644 --- a/button.lua +++ b/button.lua @@ -15,7 +15,7 @@ function propagate_to_button_handlers(x, y, mouse_button) for _,ev in ipairs(Button_handlers) do if x>ev.x and xev.y and y