MCPcopy Index your code
hub / github.com/codeaashu/claude-code / scroll

Function scroll

src/utils/computerUse/executor.ts:600–609  ·  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

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

Callers

nothing calls this directly

Calls 2

requireComputerUseInputFunction · 0.85
moveAndSettleFunction · 0.85

Tested by

no test coverage detected