carousel.love/0004-on.update

17 lines
611 B
Plaintext

on.update = function(dt)
refresh_debug_animations()
-- == menu area
if Active_button and Active_button.expire <= Current_time then
Active_button = nil
end
-- == settings area
update_sliders(Global_state, App.mouse_x())
-- == main area
if Current_pane.editor_state.scrollbar_drag then
adjust_scrollbar(Current_pane.editor_state, App.mouse_y())
elseif Current_pane.output_editor_state.scrollbar_drag then
adjust_scrollbar(Current_pane.output_editor_state, App.mouse_y())
end
-- never call edit.update; autosave is flaky on mobile devices
if car.update then call_protected(car.update, dt) end
end