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


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


<h2 id="withoutvisualeffect">withoutVisualEffect</h2>

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


```kotlin
fun OverscrollEffect.withoutVisualEffect(): OverscrollEffect
```


Returns a wrapped version of `this` `OverscrollEffect` with an empty `OverscrollEffect.node`.
This prevents the overscroll effect from applying any visual effect, but it will still handle
events.

This can be used along with `withoutEventHandling` in cases where you wish to change where
overscroll is rendered for a given component. Pass this wrapped instance that doesn't render to
the component that handles events (such as `androidx.compose.foundation.lazy.LazyColumn`) to
prevent it from drawing the overscroll effect. Then to separately render the original overscroll
effect, you can directly pass it to `Modifier.overscroll` (since that modifier only renders, and
does not handle events). If instead you want to draw the overscroll in another component that
handles events, such as a different lazy list, you need to first wrap the original overscroll
effect with `withoutEventHandling` to prevent it from also dispatching events.