From b9c6252a4a69dfe4cb861ef8a94eab8772d371df Mon Sep 17 00:00:00 2001 From: Debanjum Date: Sat, 7 Jun 2025 11:17:16 -0700 Subject: [PATCH] Increase scroll amount on horizontal scroll in computer environment --- src/khoj/processor/operator/operator_environment_computer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/khoj/processor/operator/operator_environment_computer.py b/src/khoj/processor/operator/operator_environment_computer.py index 77349bfe..b7dc9e8e 100644 --- a/src/khoj/processor/operator/operator_environment_computer.py +++ b/src/khoj/processor/operator/operator_environment_computer.py @@ -222,9 +222,9 @@ class ComputerEnvironment(Environment): elif action.scroll_direction == "down": await self._execute("scroll", -total_scroll_clicks) elif action.scroll_direction == "left": - await self._execute("hscroll", -total_scroll_clicks) + await self._execute("hscroll", -total_scroll_clicks * 3) elif action.scroll_direction == "right": - await self._execute("hscroll", total_scroll_clicks) + await self._execute("hscroll", total_scroll_clicks * 3) output = f"Scrolled {action.scroll_direction} by {amount} units at ({target_x}, {target_y})" else: error = "Scroll action requires either scroll_x/y or scroll_direction"