|
Download docs/reference/scroll.md from AUXteam/pinch: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/spaces/AUXteam/pinch/resolve/main/docs/reference/scroll.md
- Command line
-
hf download hf://spaces/AUXteam/pinch/docs/reference/scroll.md
-
curl -L -o scroll.md https://huggingface.co/spaces/AUXteam/pinch/resolve/main/docs/reference/scroll.md
505 Bytes
| # Scroll | |
| Scroll the current tab by direction or pixel amount. | |
| ```bash | |
| curl -X POST http://localhost:9867/action \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"kind":"scroll","direction":"down"}' | |
| # CLI Alternative | |
| pinchtab scroll down | |
| # Response | |
| { | |
| "success": true, | |
| "result": { | |
| "success": true | |
| } | |
| } | |
| ``` | |
| Notes: | |
| - the top-level CLI also accepts a pixel value such as `pinchtab scroll 800` | |
| - the raw API can also use `scrollY` | |
| ## Related Pages | |
| - [Snapshot](./snapshot.md) | |
| - [Text](./text.md) | |