Skip to content

Commit 91c1665

Browse files
authored
fix(execute): scroll up/down not work (#15)
1 parent fd5703c commit 91c1665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/agent/execute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ export const execute = async (executeParams: ExecuteParams) => {
201201

202202
switch (direction?.toLowerCase()) {
203203
case 'up':
204-
await mouse.scrollUp(5);
204+
await mouse.scrollUp(5 * 100);
205205
break;
206206
case 'down':
207-
await mouse.scrollDown(5);
207+
await mouse.scrollDown(5 * 100);
208208
break;
209209
default:
210210
console.warn(`Unsupported scroll direction: ${direction}`);

0 commit comments

Comments
 (0)