---
title: "withoutEventHandling"
description: "Returns a wrapped version of [this] [OverscrollEffect] that will not handle any incoming events.
This means that calls to [OverscrollEffect.applyToScroll] / [OverscrollEffect.applyToFling] will
directly execute the provided performScroll / performFling lambdas, without the
[OverscrollEffect] ever seeing the incoming values. [OverscrollEffect.node] will still be
attached, so that overscroll can render.

This can be useful if you want to render an [OverscrollEffect] in a different component that
normally provides events to overscroll, such as a [androidx.compose.foundation.lazy.LazyColumn].
Use this along with [withoutVisualEffect] to create two wrapped instances: one that does not
handle events, and one that does not draw, so you can ensure that the overscroll effect is only
rendered once, and only receives events from one source."
type: "function"
---

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


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


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


Returns a wrapped version of `this` `OverscrollEffect` that will not handle any incoming events.
This means that calls to `OverscrollEffect.applyToScroll` / `OverscrollEffect.applyToFling` will
directly execute the provided performScroll / performFling lambdas, without the
`OverscrollEffect` ever seeing the incoming values. `OverscrollEffect.node` will still be
attached, so that overscroll can render.

This can be useful if you want to render an `OverscrollEffect` in a different component that
normally provides events to overscroll, such as a `androidx.compose.foundation.lazy.LazyColumn`.
Use this along with `withoutVisualEffect` to create two wrapped instances: one that does not
handle events, and one that does not draw, so you can ensure that the overscroll effect is only
rendered once, and only receives events from one source.



