From 9bf904e8a644a6d642c387b05f6a66fcc305e802 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Tue, 4 Nov 2025 00:55:05 +0800 Subject: [PATCH] ui: scale mouse positions in touch history (#36530) scale mouse position in touch history --- system/ui/lib/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/ui/lib/application.py b/system/ui/lib/application.py index d1d74d3ac6..97aaaa27b4 100644 --- a/system/ui/lib/application.py +++ b/system/ui/lib/application.py @@ -410,7 +410,7 @@ class GuiApplication: for mouse_event in self._mouse_events: if mouse_event.left_pressed: self._mouse_history.clear() - self._mouse_history.append(MousePosWithTime(mouse_event.pos.x, mouse_event.pos.y, current_time)) + self._mouse_history.append(MousePosWithTime(mouse_event.pos.x * self._scale, mouse_event.pos.y * self._scale, current_time)) # Remove old touch points that exceed the timeout while self._mouse_history and (current_time - self._mouse_history[0].t) > TOUCH_HISTORY_TIMEOUT: