Happens when you do gooey.dynamic_list(...) before gooey.vertical_scrollbar(...) in on_input(..) or init(...) (as if you use update_list(gooey.dynamic_list(...)) on init(...))
dynamic_list will call update_list before gooey.vertical_scrollbar(...) so action will always have been nil.
Workaround is to pass the expected variables in init(...) before update_list like gooey.vertical_scrollbar("scrollbar/handle", "scrollbar/bar", nil, {x=0, y=0})
Happens when you do
gooey.dynamic_list(...)
beforegooey.vertical_scrollbar(...)
inon_input(..)
orinit(...)
(as if you useupdate_list(gooey.dynamic_list(...))
oninit(...)
)dynamic_list
will callupdate_list
beforegooey.vertical_scrollbar(...)
so action will always have been nil.Workaround is to pass the expected variables in
init(...)
beforeupdate_list
likegooey.vertical_scrollbar("scrollbar/handle", "scrollbar/bar", nil, {x=0, y=0})