---
title: "Scroll2DScope"
description: "Scope used for suspending scroll blocks"
type: "interface"
---

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


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

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



```kotlin
interface Scroll2DScope
```


Scope used for suspending scroll blocks


## Functions

```kotlin
fun scrollBy(delta: Offset): Offset
```


Attempts to scroll forward by `delta` px.

#### Returns

| | |
| --- | --- |
|  | the amount of the requested scroll that was consumed (that is, how far it scrolled) |




