https://kotlinlang.org logo
#compose
Title
# compose
a

Albert Chang

02/25/2021, 10:25 AM
I'm trying to migrate my pager implementation to using 1.0.0-beta01. The newly introduced
FlingBehavior
makes the code much better. However, as
performFling()
will not be called if there is no fling velocity, I can't figure out a way to snap to a page in that case. Is there any other way to correctly implement this behavior (
Modifier.swipeable
doesn't seem to fit)? If there is no, I think it's reasonable to call
performFling()
even if there is no fling velocity.
@matvei
m

matvei

02/25/2021, 11:30 AM
Good idea, it's most likely a bug, we need to call performFling regardless. Please file!
🤔 1
👍 1
a

Adam Powell

02/25/2021, 2:54 PM
Hey @matvei let's chat later, I'm interested in the outcome of this one
👍 1
a

Albert Chang

02/26/2021, 1:08 AM
5 Views