androidx.compose.foundation

overscroll

Function · from org.jetbrains.compose.foundation:foundation:1.12.2

No hand-written docs yet.

Renders overscroll from the provided overscrollEffect.

Parameters

fun Modifier.overscroll(overscrollEffect: OverscrollEffect?): Modifier

overscrollEffect: OverscrollEffect?Required

the OverscrollEffect to render

Library docs

Renders overscroll from the provided overscrollEffect.

This modifier attaches the provided overscrollEffect's OverscrollEffect.node to the hierarchy, which renders the actual effect. Note that this modifier is only responsible for the visual part of overscroll - on its own it will not handle input events. In addition to using this modifier you also need to propagate events to the overscrollEffect, most commonly by using a androidx.compose.foundation.gestures.scrollable.

Alternatively, you can use a higher level API such as verticalScroll or androidx.compose.foundation.lazy.LazyColumn and provide a custom OverscrollEffect - these components will both render and provide events to the OverscrollEffect, so you do not need to manually render the effect with this modifier.