bugfix: propagate mouse press if any button would
[?]
Aug 24, 2022, 8:40 PM
LJUJH5GPSIC36QYGYV4XYT7E3T4LGVKY3FXGJBKQTZ3GTHMKDQRQCDependencies
- [2]
GDJSZLYTallow buttons to nest as well - [3]
PW2VGQWNindent - [4]
XX7G2FFJintermingle freehand line drawings with text - [5]
PP2IIHL6stop putting button state in a global - [6]
OAHNWDYG. - [7]
6D5MOJS4allow buttons to interrupt events - [8]
K6DTOGOQflip return value of button handlers
Change contents
- replacement in button.lua at line 26
local result = falselocal button_pressed = falselocal consume_press = true - replacement in button.lua at line 31
if not ev.onpress1() thenresult = truebutton_pressed = trueif ev.onpress1() thenconsume_press = false - replacement in button.lua at line 38
return resultreturn button_pressed and consume_press