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


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


<h2 id="scrollby-value">scrollBy</h2>

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


```kotlin
suspend fun ScrollableState.scrollBy(value: Float): Float
```


Jump instantly by `value` pixels.

Cancels the currently running scroll, if any, and suspends until the cancellation is complete.

#### Parameters

| | |
| --- | --- |
| value | number of pixels to scroll by |


#### Returns

| | |
| --- | --- |
|  | the amount of scroll consumed |






<hr class="docs-overload-divider">


<h2 id="scrollby-value-2">scrollBy</h2>

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


```kotlin
suspend fun Scrollable2DState.scrollBy(value: Offset): Offset
```


Jump instantly by `value` pixels.

Cancels the currently running scroll, if any, and suspends until the cancellation is complete.

#### Parameters

| | |
| --- | --- |
| value | number of pixels to scroll by |


#### Returns

| | |
| --- | --- |
|  | the amount of scroll consumed |