* Move first, then scroll each axis. Vertical-first — it's the common * axis; a horizontal failure shouldn't lose the vertical.
(x: number, y: number, dx: number, dy: number)
| 598 | * axis; a horizontal failure shouldn't lose the vertical. |
| 599 | */ |
| 600 | async scroll(x: number, y: number, dx: number, dy: number): Promise<void> { |
| 601 | const input = requireComputerUseInput() |
| 602 | await moveAndSettle(input, x, y) |
| 603 | if (dy !== 0) { |
| 604 | await input.mouseScroll(dy, 'vertical') |
| 605 | } |
| 606 | if (dx !== 0) { |
| 607 | await input.mouseScroll(dx, 'horizontal') |
| 608 | } |
| 609 | }, |
| 610 | |
| 611 | // ── App management ─────────────────────────────────────────────────── |
| 612 |
nothing calls this directly
no test coverage detected