Skip to content

Instantly share code, notes, and snippets.

@arcadefire
Created Sep 12, 2021
Embed
What would you like to do?
Pre-scroll
override fun onPreScroll(
available: Offset,
source: NestedScrollSource
): Offset {
val delta = available.y
return if (delta < 0) {
swipeableState.performDrag(delta).toOffset()
} else {
Offset.Zero
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment