summaryrefslogtreecommitdiff
path: root/platform/javascript/display_server_javascript.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-11 11:33:59 +0100
committerGitHub <noreply@github.com>2022-01-11 11:33:59 +0100
commit46624388d48379350ca9b9020bc55eef61102145 (patch)
tree14cc974237b03d04419ff0307403bf47cd527a81 /platform/javascript/display_server_javascript.cpp
parentf20ae16e0ba22c317e798939581582f15475f170 (diff)
parent3105d9b1f35959f70975fd6de034b9168cd3b337 (diff)
Merge pull request #56322 from madmiraal/fix-42450
Diffstat (limited to 'platform/javascript/display_server_javascript.cpp')
-rw-r--r--platform/javascript/display_server_javascript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/display_server_javascript.cpp b/platform/javascript/display_server_javascript.cpp
index 5d960ef80c..f98e0c4c5f 100644
--- a/platform/javascript/display_server_javascript.cpp
+++ b/platform/javascript/display_server_javascript.cpp
@@ -230,7 +230,7 @@ void DisplayServerJavaScript::mouse_move_callback(double p_x, double p_y, double
ev->set_relative(Vector2(p_rel_x, p_rel_y));
Input::get_singleton()->set_mouse_position(ev->get_position());
- ev->set_speed(Input::get_singleton()->get_last_mouse_speed());
+ ev->set_velocity(Input::get_singleton()->get_last_mouse_velocity());
Input::get_singleton()->parse_input_event(ev);
}