File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/playwright_computer_use Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 18
18
from dataclasses import dataclass
19
19
20
20
TYPING_DELAY_MS = 12
21
+ SCROLL_MULTIPLIER_FACTOR = 500
21
22
TYPING_GROUP_SIZE = 50
22
23
23
24
Action_20241022 = Literal [
@@ -411,7 +412,7 @@ async def __call__(
411
412
x , y = coordinate
412
413
await self .page .mouse .move (x , y )
413
414
self .mouse_position = (x , y )
414
- scroll_amount *= 100
415
+ scroll_amount *= SCROLL_MULTIPLIER_FACTOR
415
416
scroll_params = {
416
417
"up" : {"delta_y" : - scroll_amount , "delta_x" : 0 },
417
418
"down" : {"delta_y" : scroll_amount , "delta_x" : 0 },
Original file line number Diff line number Diff line change 21
21
ScrollDirection ,
22
22
chunks ,
23
23
TYPING_GROUP_SIZE ,
24
+ SCROLL_MULTIPLIER_FACTOR ,
24
25
to_playwright_key ,
25
26
load_cursor_image ,
26
27
_make_api_tool_result ,
@@ -356,7 +357,7 @@ def __call__(
356
357
x , y = coordinate
357
358
self .page .mouse .move (x , y )
358
359
self .mouse_position = (x , y )
359
- scroll_amount *= 100
360
+ scroll_amount *= SCROLL_MULTIPLIER_FACTOR
360
361
scroll_params = {
361
362
"up" : {"delta_y" : - scroll_amount , "delta_x" : 0 },
362
363
"down" : {"delta_y" : scroll_amount , "delta_x" : 0 },
You can’t perform that action at this time.
0 commit comments