From 1464b7d5e5c55385612085cc915530f8c70799ed Mon Sep 17 00:00:00 2001 From: nyne Date: Sat, 22 Feb 2025 11:33:58 +0800 Subject: [PATCH] Improve changing chapter gesture with continuous mode. --- lib/pages/reader/images.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pages/reader/images.dart b/lib/pages/reader/images.dart index 24b1ac8..609890a 100644 --- a/lib/pages/reader/images.dart +++ b/lib/pages/reader/images.dart @@ -349,7 +349,7 @@ const Set _kTouchLikeDeviceTypes = { PointerDeviceKind.unknown }; -const double _kChangeChapterOffset = 200; +const double _kChangeChapterOffset = 160; class _ContinuousMode extends StatefulWidget { const _ContinuousMode({super.key}); @@ -567,8 +567,10 @@ class _ContinuousModeState extends State<_ContinuousMode> } if (fingers == 0) { if (jumpToPrevChapter) { + context.readerScaffold.setFloatingButton(0); reader.toPrevChapter(); } else if (jumpToNextChapter) { + context.readerScaffold.setFloatingButton(0); reader.toNextChapter(); } } @@ -697,7 +699,7 @@ class _ContinuousModeState extends State<_ContinuousMode> controller: scrollController, isPrev: false, ), - SizedBox(height: context.padding.bottom + 16), + SizedBox(height: 36), ], ); }