dispatchOnScrollChanged

Function

Common
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

deltaThe scroll delta that was consumed by this node.