* 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)
| 663 | * axis; a horizontal failure shouldn't lose the vertical. |
| 664 | */ |
| 665 | async scroll(x: number, y: number, dx: number, dy: number): Promise<void> { |
| 666 | const input = requireComputerUseInput() |
| 667 | await moveAndSettle(input, x, y) |
| 668 | if (dy !== 0) { |
| 669 | await input.mouseScroll(dy, 'vertical') |
| 670 | } |
| 671 | if (dx !== 0) { |
| 672 | await input.mouseScroll(dx, 'horizontal') |
| 673 | } |
| 674 | }, |
| 675 | |
| 676 | // ── App management ─────────────────────────────────────────────────── |
| 677 |
nothing calls this directly
no test coverage detected