diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-24 01:22:10 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-24 01:22:10 +0100 |
commit | e2f85b4f7a18398ccb922ff239bbcdac94e72364 (patch) | |
tree | 10b074bd1ea86b7085e7968a835ca84cd176f53d /platform/linuxbsd | |
parent | c3370023b6ffd29069a91ca8c3c2e4a3cacc2d76 (diff) | |
parent | 9aa99c0a9dffbcf55420660b3d0a29f64fc3a825 (diff) | |
download | redot-engine-e2f85b4f7a18398ccb922ff239bbcdac94e72364.tar.gz |
Merge pull request #89707 from AThousandShips/typo_fix
[Wayland] Fix typo in input code
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/wayland/wayland_thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp index 5040f5dd45..4057587db7 100644 --- a/platform/linuxbsd/wayland/wayland_thread.cpp +++ b/platform/linuxbsd/wayland/wayland_thread.cpp @@ -2454,7 +2454,7 @@ void WaylandThread::_wp_tablet_tool_on_frame(void *data, struct zwp_tablet_tool_ mm->set_relative_screen_position(mm->get_relative()); Vector2i pos_delta = td.position - old_td.position; - uint32_t time_delta = td.motion_time - td.motion_time; + uint32_t time_delta = td.motion_time - old_td.motion_time; mm->set_velocity((Vector2)pos_delta / time_delta); Ref<InputEventMessage> inputev_msg; |