Jason Ankers
03/09/2021, 4:46 AMLazyColumn
out of a nested scroll chain? The docs only explain how to opt in/configure the existing chain: https://developer.android.com/jetpack/compose/gestures#auto-nested-scrollingmatvei
03/09/2021, 1:02 PMJason Ankers
03/09/2021, 2:35 PMmatvei
03/09/2021, 4:25 PMModifier.nestedScroll
and pass an ``object: NestedScrollConnection` with overriden onPostScroll
and onPostFling
that should eat all delta/velocity, so the bottom sheet that is higher in the nested scroll hierarchy gets nothingJason Ankers
03/10/2021, 2:02 AM.nestedScroll(object : NestedScrollConnection {
override fun onPostScroll(
consumed: Offset,
available: Offset,
source: NestedScrollSource
): Offset {
return Offset.Zero
}
override suspend fun onPostFling(
consumed: Velocity,
available: Velocity
): Velocity {
return Velocity.Zero
}
})
matvei
03/10/2021, 10:53 AMavailable
in both cases and not Velocity.Zero
since you want to consume everything available to stop the propagation upJason Ankers
03/10/2021, 11:07 AM