---
title: "ScrollWheel"
description: "Representation of a mouse scroll wheel axis. Only [Horizontal] and [Vertical] are supported. All
methods that accept a scroll axis use [Vertical] as the default, since most mice only have a
vertical scroll wheel."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
value class ScrollWheel private constructor(val value: Int)
```


Representation of a mouse scroll wheel axis. Only `Horizontal` and `Vertical` are supported. All
methods that accept a scroll axis use `Vertical` as the default, since most mice only have a
vertical scroll wheel.


## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Horizontal = ScrollWheel(0)
```


<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Vertical = ScrollWheel(1)
```




