mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-23 11:42:14 +00:00
Improve _handlePageNavigation()
The helper now handles every continuous reading mode, not just webtoon.
This commit is contained in:
parent
456589ccfb
commit
ffe8dee065
1 changed files with 5 additions and 3 deletions
|
|
@ -920,9 +920,11 @@ class _MangaChapterPageGalleryState
|
|||
);
|
||||
if (readerMode == null || _currentIndex == null) return;
|
||||
|
||||
if (readerMode == ReaderMode.webtoon) {
|
||||
final viewportHeight = MediaQuery.sizeOf(context).height;
|
||||
final offset = viewportHeight * 0.60 * (forward ? 1 : -1);
|
||||
if (readerMode.isContinuous) {
|
||||
final isHorizontal = readerMode.isHorizontalContinuous;
|
||||
final viewportSize = MediaQuery.sizeOf(context);
|
||||
final dimension = isHorizontal ? viewportSize.width : viewportSize.height;
|
||||
final offset = dimension * 0.60 * (forward ? 1 : -1);
|
||||
final duration = animatePageTransitions
|
||||
? const Duration(milliseconds: 160)
|
||||
: const Duration(milliseconds: 10);
|
||||
|
|
|
|||
Loading…
Reference in a new issue