From 0d3fde9457ef7c5fbb68695d92f2911a8f9075ba Mon Sep 17 00:00:00 2001 From: nyne Date: Mon, 21 Apr 2025 19:16:43 +0800 Subject: [PATCH] Adjust key repeat timer duration based on page animation setting. --- lib/pages/reader/images.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pages/reader/images.dart b/lib/pages/reader/images.dart index 4e8fd4a..12111fa 100644 --- a/lib/pages/reader/images.dart +++ b/lib/pages/reader/images.dart @@ -443,7 +443,9 @@ class _GalleryModeState extends State<_GalleryMode> } if (event is KeyRepeatEvent && keyRepeatTimer == null) { keyRepeatTimer = Timer.periodic( - const Duration(milliseconds: 200), + reader.enablePageAnimation + ? const Duration(milliseconds: 200) + : const Duration(milliseconds: 50), (timer) { if (!mounted) { timer.cancel();