简体   繁体   English

Jetpack Compose 水平寻呼机滑动延迟

[英]Jetpack Compose Horizontal Pager Swipe Delay

I have a Jetpack Compose App that uses a Horizontal Pager.我有一个使用水平寻呼机的 Jetpack Compose 应用程序。 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.我看到的行为是,当我滑动到下一页时,它会平滑移动,但是当我向后滑动时,屏幕会前进大约 3/4 并暂停,然后如果我等待它完成滑动。

Question:问题:

Is this normal and controlled by the Fling Behavior?这是否正常并受 Fling 行为控制?

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此处还提到: How to optimize laggy JetPack Compose layout

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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