Browse Source

fix: 主页面卡顿问题

HapeLee 5 tháng trước cách đây
mục cha
commit
6749faf6eb

+ 1 - 1
app/src/main/java/io/legado/app/ui/main/MainScreen.kt

@@ -363,7 +363,7 @@ fun MainScreen(
                                 }
                                 }
                             ),
                             ),
                         userScrollEnabled = true,
                         userScrollEnabled = true,
-                        beyondViewportPageCount = 1
+                        beyondViewportPageCount = 4
                     ) { page ->
                     ) { page ->
                         val destination = destinations.getOrNull(page) ?: return@HorizontalPager
                         val destination = destinations.getOrNull(page) ?: return@HorizontalPager
                         when (destination) {
                         when (destination) {