From 93f6fbd7b2718c4e7c2ae35d753df380f1227eba Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sat, 2 Sep 2017 13:17:13 +0100 Subject: [PATCH] Fixed jitter when scrolling up --- scene/gui/text_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index cd7e1b2ed82..ade665b4189 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);