# mouseWheel()

## Example

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2FhwLdkFPHxdHthPcpaS3z%2Fwheel.gif?alt=media&#x26;token=1a4b4761-bd03-44ab-8b14-a9394755666d" alt=""><figcaption><p>When the mouse wheel is scrolled</p></figcaption></figure>

## Syntax

```
def mouseWheel([event]):
    # do stuff
    # work with event with property delta, like event.delta
```

<details>

<summary>Full Code Example</summary>

```python
```

</details>

## Description

This function is called any time a **vertical mouse wheel** event is detected, either triggered by rolling an actual mouse wheel or by a touchpad.

{% hint style="info" %}
Find these documents helpful? Let the people who made them help your child learn to code at [**Strivemath**](https://www.strivemath.com/)<mark style="color:blue;">**!**</mark>

We'd love to hear your Feedback/Comments [here](https://docs.google.com/forms/d/e/1FAIpQLSeqorBAGTya-YBRI-VFjJxtgQtCz3ucGDI96K96sNyuaGuvdw/viewform?usp=sf_link).
{% endhint %}
