Skip to content

Instantly share code, notes, and snippets.

@arcadefire
Created September 12, 2021 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arcadefire/6bf3aee97eb98294e6062ed4781d2b26 to your computer and use it in GitHub Desktop.
Save arcadefire/6bf3aee97eb98294e6062ed4781d2b26 to your computer and use it in GitHub Desktop.
Postscroll
override fun onPostScroll(
consumed: Offset,
available: Offset,
source: NestedScrollSource
): Offset {
val delta = available.y
return swipeableState.performDrag(delta).toOffset()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment