summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2017-09-02 13:17:13 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2017-09-02 13:45:21 +0100
commit93f6fbd7b2718c4e7c2ae35d753df380f1227eba (patch)
tree45a7a7367b0c0b7579180d53e2dc28af36935c05 /scene/gui
parent8e75e7311bfedae6d94b295b2daa50c742582680 (diff)
Fixed jitter when scrolling up
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp2
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);