Function

performRotaryScrollInput

Executes the rotary input specified in the given block.

rotaryInputScroll

@Sampled
fun rotaryInputScroll() {
    composeTestRule.onNodeWithTag("myComponent").performRotaryScrollInput {
        rotateToScrollVertically(3.0f)
        rotateToScrollVertically(10.0f)
        rotateToScrollVertically(2.0f)
    }
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: