mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-23 15:52:16 +00:00
Use width for minCacheExtent when in horizontal
This commit is contained in:
parent
1eed6fe01e
commit
519dd048ee
1 changed files with 3 additions and 2 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue