mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Adjust the scroll distance when turning pages using the arrow keys. Close #329
This commit is contained in:
@@ -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,
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user