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

Function scroll

source code/utils/computerUse/executor.ts:602–611  ·  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

600 * axis; a horizontal failure shouldn't lose the vertical.
601 */
602 async scroll(x: number, y: number, dx: number, dy: number): Promise<void> {
603 const input = requireComputerUseInput()
604 await moveAndSettle(input, x, y)
605 if (dy !== 0) {
606 await input.mouseScroll(dy, 'vertical')
607 }
608 if (dx !== 0) {
609 await input.mouseScroll(dx, 'horizontal')
610 }
611 },
612
613 // ── App management ───────────────────────────────────────────────────
614

Callers

nothing calls this directly

Calls 2

requireComputerUseInputFunction · 0.85
moveAndSettleFunction · 0.85

Tested by

no test coverage detected