From 22e663c7c192abebc0e42588142dd011095e2dc1 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 10 Oct 2020 21:51:05 +0200 Subject: [PATCH] Disable script editor smooth scrolling by default due to bugs Fixing the bug where smooth scrolling stops working after increasing the physics ticks per second project setting doesn't appear to be trivial. Disabling smooth scrolling by default alleviates the issue for now. The way the current smooth scrolling algorithm works isn't really conductive to a good user experience anyway - it is purely linear and line-based, rather than per-pixel. --- editor/editor_settings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 8eb255184336..729cf8600a14 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -554,7 +554,8 @@ void EditorSettings::_load_defaults(Ref p_extra_config) { // Behavior: Navigation _initial_set("text_editor/behavior/navigation/move_caret_on_right_click", true); _initial_set("text_editor/behavior/navigation/scroll_past_end_of_file", false); - _initial_set("text_editor/behavior/navigation/smooth_scrolling", true); + // Disable smooth scrolling by default due to known bugs like GH-28385. + _initial_set("text_editor/behavior/navigation/smooth_scrolling", false); EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/behavior/navigation/v_scroll_speed", 80, "1,10000,1") _initial_set("text_editor/behavior/navigation/drag_and_drop_selection", true); _initial_set("text_editor/behavior/navigation/stay_in_script_editor_on_node_selected", true);