Tin Tran

08/04/2022, 9:32 AM
Is there away to disable fling behavior on accompanist pager?

Colton Idle

08/05/2022, 3:03 AM
I believe this was removed from accompanist when it was refactored to use Lazy*. and then compose core Lazy* added the ability to turn off user scroll events. I'll try to look up docs when im back at my desk, but basically if you can find how to diable user input for Lazy* then that should work on pagers.

Tin Tran

08/05/2022, 4:17 AM
Doesn’t disabling the user input also disable user scrolling too? I only want to disable the fling behavior because my pager has some quite heavy exoplayer initialization when switching page so if the user swipe hard enough the pager will change page rapidly causing frame drop. Maybe fiddling around with initial velocity and friction will help me in this case