Use width for minCacheExtent when in horizontal

This commit is contained in:
NBA2K1 2026-04-19 21:09:49 +02:00
parent 1eed6fe01e
commit 519dd048ee

View file

@ -423,8 +423,9 @@ class _MangaChapterPageGalleryState
scrollDirection: isHorizontalContinuous
? Axis.horizontal
: Axis.vertical,
minCacheExtent:
pagePreloadAmount * context.height(1),
minCacheExtent: isHorizontalContinuous
? pagePreloadAmount * context.width(1)
: pagePreloadAmount * context.height(1),
initialScrollIndex: _readerController
.getPageIndex(),
physics: const ClampingScrollPhysics(),