---
title: "RotaryScrollEvent"
description: "This event represents a rotary input event."
type: "class"
---

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


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

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


```kotlin
expect class RotaryScrollEvent
```


This event represents a rotary input event.


## Properties

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


```kotlin
val verticalScrollPixels: Float
```


The amount to scroll (in pixels) in response to a `RotaryScrollEvent` in a container that can
scroll vertically.



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


```kotlin
val horizontalScrollPixels: Float
```


The amount to scroll (in pixels) in response to a `RotaryScrollEvent` in a container that can
scroll horizontally.



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


```kotlin
val uptimeMillis: Long
```


The time in milliseconds at which this even occurred. The start (`0`) time is
platform-dependent.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
actual class RotaryScrollEvent
internal constructor(
    /**
     * The amount to scroll (in pixels) in response to a [RotaryScrollEvent] in a container that can
     * scroll vertically.
     */
    actual val verticalScrollPixels: Float,

    /**
     * The amount to scroll (in pixels) in response to a [RotaryScrollEvent] in a container that can
     * scroll horizontally.
     */
    actual val horizontalScrollPixels: Float,

    /**
     * The time in milliseconds at which this even occurred. The start (`0`) time is
     * platform-dependent.
     */
    actual val uptimeMillis: Long,

    /** The id for the input device that this event came from */
    val inputDeviceId: Int,
)
```


This event represents a rotary input event.

Some Wear OS devices contain a physical rotating side button, or a rotating bezel. When the user
turns the button or rotates the bezel, a `RotaryScrollEvent` is sent to the item in focus.



