---
title: "stopScroll"
description: "Stop and suspend until any ongoing animation, smooth scrolling, fling, or any other scroll
occurring via [ScrollableState.scroll] is terminated."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
suspend fun ScrollableState.stopScroll(scrollPriority: MutatePriority = MutatePriority.Default)
```


Stop and suspend until any ongoing animation, smooth scrolling, fling, or any other scroll
occurring via `ScrollableState.scroll` is terminated.

#### Parameters

| | |
| --- | --- |
| scrollPriority | scrolls that run with this priority or lower will be stopped |




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


```kotlin
suspend fun Scrollable2DState.stopScroll(scrollPriority: MutatePriority = MutatePriority.Default)
```


Stop and suspend until any ongoing animation, smooth scrolling, fling, or any other scroll
occurring via `ScrollableState.scroll` is terminated.

#### Parameters

| | |
| --- | --- |
| scrollPriority | scrolls that run with this priority or lower will be stopped |




