Mouse Wheel
Execute mouse wheel scroll operation, used to scroll pages or content areas.
Interface Description
Interface Type
mouseWheelParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
tilt | number | ✅ | Scroll amount, positive scrolls up, negative scrolls down |
tilt Parameter Description
| Value Range | Description | Scroll Direction |
|---|---|---|
Positive (e.g., 120) | Scroll up | ⬆️ Page scrolls up (content moves down) |
Negative (e.g., -120) | Scroll down | ⬇️ Page scrolls down (content moves up) |
Return Value
javascript
true // Returns true on successful operationBasic Usage
javascript
// Scroll down
await apiInvoke('mouseWheel', {
deviceId: 'P72578581E07',
tilt: -120 // Negative = scroll down
});
// Scroll up
await apiInvoke('mouseWheel', {
deviceId: 'P72578581E07',
tilt: 120 // Positive = scroll up
});