Saturday, 15 January 2022

How to quickly switch to next page in VerticalPager?

I am using Accompanist Pager library (version 0.18.0) and created a VerticalPager for displaying certain pictures.

While scrolling up/down, the required behavior is to scroll to the next/previous picture, which works, but on a quick scroll, it is snapping to the same picture again.

I want to switch to the pictures on slightest scroll.

I tried to modify the. flingBehaviour as mentioned here: How to set a threshold for LazyColumn/ViewPager before starting to scroll?

but it is not working as expected.



from How to quickly switch to next page in VerticalPager?

No comments:

Post a Comment