diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-09-02 16:45:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-02 16:45:20 +0200 |
commit | 0fc342c296213bb52bbe7bd068387d5dbc1f80c2 (patch) | |
tree | 4a4f478ea52e87b25ebe5590fe414d6d27ebba4b /scene | |
parent | 2b8d379824354227efd55b23152b6165cf6338cf (diff) | |
parent | 93f6fbd7b2718c4e7c2ae35d753df380f1227eba (diff) |
Merge pull request #10887 from Paulb23/fix_scrolling_up_jitter
Fixed jitter when scrolling up
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index cd7e1b2ed8..ade665b418 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -430,7 +430,7 @@ void TextEdit::_notification(int p_what) { double dist = sqrt(target_y * target_y); double vel = ((target_y / dist) * v_scroll_speed) * get_fixed_process_delta_time(); - if (vel >= dist) { + if (Math::abs(vel) >= dist) { v_scroll->set_value(target_v_scroll); scrolling = false; set_fixed_process(false); |