From a29a7cbaf316831581540fee9cda5c4bd7496571 Mon Sep 17 00:00:00 2001 From: nyne Date: Mon, 21 Apr 2025 20:12:08 +0800 Subject: [PATCH] Adjust the scroll distance when turning pages using the arrow keys. Close #329 --- lib/pages/reader/images.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/reader/images.dart b/lib/pages/reader/images.dart index 12111fa..728b9b4 100644 --- a/lib/pages/reader/images.dart +++ b/lib/pages/reader/images.dart @@ -999,13 +999,13 @@ class _ContinuousModeState extends State<_ContinuousMode> } if (forward == true) { scrollController.animateTo( - scrollController.offset + context.height, + scrollController.offset + context.height * 0.25, duration: const Duration(milliseconds: 200), curve: Curves.ease, ); } else if (forward == false) { scrollController.animateTo( - scrollController.offset - context.height, + scrollController.offset - context.height * 0.25, duration: const Duration(milliseconds: 200), curve: Curves.ease, );