summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2021-12-29 13:22:22 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2021-12-29 15:35:26 +0000
commit3105d9b1f35959f70975fd6de034b9168cd3b337 (patch)
tree93bc57515ea4c74c43ce8e8c3a12a94c06f3ef74 /scene/gui
parent9f058674acebf9a7a0704cdbc26dc9f6d853b16e (diff)
Rename speed to velocity when it's a directional Vector
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 5a6ac7c0d2..af51287ca1 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -3172,7 +3172,7 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
if (drag_touching && !drag_touching_deaccel) {
drag_accum -= mm->get_relative().y;
v_scroll->set_value(drag_from + drag_accum);
- drag_speed = -mm->get_speed().y;
+ drag_speed = -mm->get_velocity().y;
}
}