---
title: "dispatchOnScrollChanged"
description: "Call this function whenever a scroll chang happened in the LayoutNode that this [DelegatableNode]
is attached to to let the underlying platform know that a scroll event happened in this
[LayoutNode].

On Android this will trigger a ViewTreeObserver onScrollChanged callback."
type: "function"
---

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


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


```kotlin
fun DelegatableNode.dispatchOnScrollChanged(delta: Offset) =
    requireOwner().dispatchOnScrollChanged(delta)
```


Call this function whenever a scroll chang happened in the LayoutNode that this `DelegatableNode`
is attached to to let the underlying platform know that a scroll event happened in this
`LayoutNode`.

On Android this will trigger a ViewTreeObserver onScrollChanged callback.

#### Parameters

| | |
| --- | --- |
| delta | The scroll delta that was consumed by this node. |




