> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# WheelEvent

APISummary
Represents a mouse wheel event, inherited from [`MouseEvent`](/next/api/lynx-api/event/mouse-event.md). It can also be fired by trackpads and other scrolling devices. [`target`](/next/api/lynx-api/event/event.md#target) is the `element` under the mouse pointer when the first `WheelEvent` occurs.

## Instance property

### deltaX

```ts
deltaX: number;
```

Indicates the horizontal scrolling distance in logical pixels.

### deltaY

```ts
deltaY: number;
```

Indicates the vertical scrolling distance in logical pixels.

## WheelEvent type

### wheel

Indicates that the user scrolls the mouse wheel or touchpad. [`target`](/next/api/lynx-api/event/event.md#target) is the `element` under the mouse pointer when the first `WheelEvent` occurs.

## Compatibility

**Compatibility Table**

**Query:** `lynx-api.event.WheelEvent`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/event/WheelEvent.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| WheelEvent | No | No | No | Yes (3.7) | Yes (3.7) | Partial |
| deltaX | No | No | No | Yes (3.7) | Yes (3.7) | No |
| deltaY | No | No | No | Yes (3.7) | Yes (3.7) | No |
| wheel | No | No | No | Yes (3.7) | Yes (3.7) | Yes |

**`WheelEvent`**

- **Web — Supported (version unknown):** Partial support; The wheel event is delivered, but deltaX and deltaY are not forwarded.

**`deltaX`**

- **Web — Not supported:** The Web event bridge does not copy wheel delta fields.

**`deltaY`**

- **Web — Not supported:** The Web event bridge does not copy wheel delta fields.

