Fix jumping when scrolling down fast with smooth scroll enabled

Fixes #24773
This commit is contained in:
Timo Schwarzer 2019-01-06 10:22:38 +01:00
parent 0e25c32a77
commit 3b2e03cf0b
No known key found for this signature in database
GPG Key ID: C4062DA320280737
1 changed files with 0 additions and 1 deletions

View File

@ -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);