Wheel
wheelDispatch mouse wheel events at specific coordinates to scroll vertically or horizontally, or zoom with Control modifier.
Instructions
Dispatch a mouse wheel event at specific coordinates. Use for scroll-to-zoom (with Control modifier) or horizontal scrolling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate where the wheel event is dispatched. | |
| y | Yes | Y coordinate where the wheel event is dispatched. | |
| eid | No | Optional element ID. When provided, x/y coordinates are relative to the element top-left corner. | |
| deltaX | No | Horizontal scroll delta in pixels. Positive scrolls right. | |
| deltaY | Yes | Vertical scroll delta in pixels. Positive scrolls down, negative scrolls up. For zoom: negative typically zooms in, positive zooms out. | |
| page_id | No | The ID of the page. | |
| modifiers | No | Modifier keys to hold during the wheel event (e.g., Control for zoom). |