debug dragTo

This commit is contained in:
tsuky_chen
2023-12-13 00:05:43 +08:00
committed by GitHub
parent a37f8a39e0
commit c628a4e0e8

View File

@@ -143,7 +143,7 @@ class PythonController:
if "x" in parameters and "y" in parameters:
x = parameters["x"]
y = parameters["y"]
self.execute_python_command(f"pyautogui.dragTo({x}, {y}, button='left')")
self.execute_python_command(f"pyautogui.dragTo({x}, {y}, duration=1.0, button='left', mouseDownUp=True)")
elif action_type == "SCROLL":
# todo: check if it is related to the operating system, as https://github.com/TheDuckAI/DuckTrack/blob/main/ducktrack/playback.py pointed out