소스 검색

Merge pull request #89707 from AThousandShips/typo_fix

[Wayland] Fix typo in input code
Rémi Verschelde 1 년 전
부모
커밋
e2f85b4f7a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      platform/linuxbsd/wayland/wayland_thread.cpp

+ 1 - 1
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;