Adjust the scroll distance when turning pages using the arrow keys. Close #329

This commit is contained in:
2025-04-21 20:12:08 +08:00
parent 7bdab7ade7
commit a29a7cbaf3

View File

@@ -999,13 +999,13 @@ class _ContinuousModeState extends State<_ContinuousMode>
} }
if (forward == true) { if (forward == true) {
scrollController.animateTo( scrollController.animateTo(
scrollController.offset + context.height, scrollController.offset + context.height * 0.25,
duration: const Duration(milliseconds: 200), duration: const Duration(milliseconds: 200),
curve: Curves.ease, curve: Curves.ease,
); );
} else if (forward == false) { } else if (forward == false) {
scrollController.animateTo( scrollController.animateTo(
scrollController.offset - context.height, scrollController.offset - context.height * 0.25,
duration: const Duration(milliseconds: 200), duration: const Duration(milliseconds: 200),
curve: Curves.ease, curve: Curves.ease,
); );