on.update = function(dt) refresh_debug_animations() -- == menu area if Active_button and Active_button.expire <= Current_time then Active_button = nil end local x, y = love.mouse.getPosition() if mouse_hover_on_any_button(Global_state, x,y) then love.mouse.setCursor(Hand_icon) else love.mouse.setCursor(Arrow_icon) 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