Fixed
Status Update
Comments
jo...@google.com <jo...@google.com>
ap...@google.com <ap...@google.com> #2
Thanks! This looks like a bug, thank you for reporting!
na...@google.com <na...@google.com> #3
I would also recommend setting the value to 10%. When you do that, the behavior is wild.
Dragging up to 10% or between 50% and 90% will cause it to snap back to the start anchor.
Dragging between 10% and 50% or past 90% will cause it to snap to the end anchor.
Dragging up to 10% or between 50% and 90% will cause it to snap back to the start anchor.
Dragging between 10% and 50% or past 90% will cause it to snap to the end anchor.
Description
Jetpack Compose version: 1.4.0
Jetpack Compose component(s) used: Pager
It is now a lot harder to customize the required fling to snap to a page, because shortSnapVelocityThreshold parameter is not exposed to the fling creation function and everything is private inside the Pager file.
Before I could simply do something like this:
but now this is also not possible because SnapFlingBehavior is a concrete class instead of an interface and I'd need to provide all the constructor params and I cannot take advantage of the SnapLayoutInfoProvider class since it's also private.