on.update = function(dt) refresh_debug_animations() if not Show_code then if car.update then call_protected(car.update, dt) end else -- == 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 Output_editor_state.scrollbar_drag then adjust_scrollbar(Output_editor_state, App.mouse_y()) end -- never call edit.update; autosave is flaky on mobile devices end end