Is there any way to override the fling logic in `S...
# compose
a
Is there any way to override the fling logic in
ScrollableController
for scrollable modifier? I'm trying to implement something similar to the
PagerSnapHelper
of RecyclerView but found it difficult using
FlingConfig
because I have to know current offset, page size, etc to calculate fling distance and if I implement it using
FloatDecayAnimationSpec
then it can't be stateless.
👀 2
❤️ 1
s
Hey @Albert Chang, thanks for coming up with this. It seems outdated for beta01 though, do you plan updating it soon?
a
@Smorg The update was almost finished except this problem which I believe can't be solved now. Here's the updated version without the problem solved, if you need.
s
Thanks @Albert Chang. I will make do with this if it at least behaves like the required pager.