From 3b2e03cf0b2fe8f1dea163984f399a309583c033 Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Sun, 6 Jan 2019 10:22:38 +0100 Subject: [PATCH] Fix jumping when scrolling down fast with smooth scroll enabled Fixes #24773 --- scene/gui/text_edit.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 852eed17685..6b75ca32b97 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -3259,7 +3259,6 @@ void TextEdit::_scroll_down(real_t p_delta) { int max_v_scroll = round(v_scroll->get_max() - v_scroll->get_page()); if (target_v_scroll > max_v_scroll) { target_v_scroll = max_v_scroll; - v_scroll->set_value(target_v_scroll); } if (Math::abs(target_v_scroll - v_scroll->get_value()) < 1.0) { v_scroll->set_value(target_v_scroll);