MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / scroll

Function scroll

src/utils/computerUse/executor.ts:665–674  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

requireComputerUseInputFunction · 0.85
moveAndSettleFunction · 0.85
mouseScrollMethod · 0.65

Tested by

no test coverage detected