简体   繁体   中英

Jetpack Compose Horizontal Pager Swipe Delay

I have a Jetpack Compose App that uses a Horizontal Pager. The behavior I am seeing is that when I swipe to my next page it moves smooth, but when I swipe back the screen advances about 3/4 of the way and pauses and then if I wait it completes the swipe.

Question:

Is this normal and controlled by the Fling Behavior?

Or could it be my implementation?

Has anyone else experienced this?

It depends on the content in horizontal pager.When I use a simple coil image, it works fine.But when I have vertical pager/lazy column inside a horizontal pager, it lags. Also mentioned here: How to optimise laggy JetPack Compose layout

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM