Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Merge pull request #390 from onel/reference-docs-20250901_145129

ddupontda9af2e0fd61
diff --cc libs/python/computer-server/computer_server/handlers/linux.py
index 0fd48553cd,82fc51c9be..eb8ca7b8be
--- a/libs/python/computer-server/computer_server/handlers/linux.py
+++ b/libs/python/computer-server/computer_server/handlers/linux.py
@@@ -217,8 -379,17 +380,17 @@@ class LinuxAutomationHandler(BaseAutoma
# Scrolling Actions
async def scroll(self, x: int, y: int) -> Dict[str, Any]:
+ """Scroll the mouse wheel.
+
+ Args:
+ x: The horizontal scroll amount.
+ y: The vertical scroll amount.
+
+ Returns:
+ Dict[str, Any]: A dictionary with success status and error message if failed.
+ """
try:
- pyautogui.scroll(x, y)
+ self.mouse.scroll(x, y)
return {"success": True}
except Exception as e:
return {"success": False, "error": str(e)}