mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Adjust key repeat timer duration based on page animation setting.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user