diff options
author | Timo Schwarzer <me@timoschwarzer.com> | 2019-01-06 10:22:38 +0100 |
---|---|---|
committer | Timo Schwarzer <me@timoschwarzer.com> | 2019-01-06 10:22:38 +0100 |
commit | 3b2e03cf0b2fe8f1dea163984f399a309583c033 (patch) | |
tree | 242d60d87a55ee4478b372015f4e14dbeb53ce26 | |
parent | 0e25c32a77d619c8daa665527dd1f04f0f31f271 (diff) |
Fix jumping when scrolling down fast with smooth scroll enabled
Fixes #24773
-rw-r--r-- | scene/gui/text_edit.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 852eed1768..6b75ca32b9 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); |