diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-12-29 13:22:22 +0000 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-12-29 15:35:26 +0000 |
commit | 3105d9b1f35959f70975fd6de034b9168cd3b337 (patch) | |
tree | 93bc57515ea4c74c43ce8e8c3a12a94c06f3ef74 /scene/gui | |
parent | 9f058674acebf9a7a0704cdbc26dc9f6d853b16e (diff) |
Rename speed to velocity when it's a directional Vector
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/tree.cpp | 2 |
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; } } |