Commit 7c204a5
committed
fix(anthropic-cua): use 120px scroll multiplier to match Anthropic xdotool behavior
Anthropic's reference implementation uses xdotool where each scroll_amount
unit equals one scroll wheel click (~120 pixels). Previously:
- TypeScript used the value directly
- Python used a 10x multiplier
Both now use 120x to match Anthropic's expected behavior for AI agents.1 parent 77db935 commit 7c204a5
2 files changed
Lines changed: 4 additions & 2 deletions
File tree
- pkg/templates
- python/anthropic-computer-use/tools
- typescript/anthropic-computer-use/tools
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
| 374 | + | |
374 | 375 | | |
375 | 376 | | |
376 | 377 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
| 308 | + | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
| |||
0 commit comments