#238 bugfix for push button and sidebar in bounds checks

This commit is contained in:
Mikayla Fischler
2023-05-23 19:51:48 -04:00
parent 97cee58e5a
commit 43a0ff86d7
7 changed files with 18 additions and 9 deletions

View File

@@ -84,7 +84,7 @@ local function push_button(args)
show_pressed()
elseif event.type == CLICK_TYPE.UP then
show_unpressed()
if e.in_bounds(event.current.x, event.current.y) then
if e.in_frame_bounds(event.current.x, event.current.y) then
args.callback()
end
end