Add mouse scroll speed setting. Close #471

This commit is contained in:
2025-08-24 19:52:24 +08:00
parent ac13807ef4
commit d308c2ac60
4 changed files with 60 additions and 17 deletions

View File

@@ -177,6 +177,21 @@ class _ReaderSettingsState extends State<ReaderSettings> {
comicSource: isEnabledSpecificSettings ? widget.comicSource : null,
),
),
SliverAnimatedVisibility(
visible: appdata.settings['readerMode']!.startsWith('continuous'),
child: _SliderSetting(
title: "Mouse scroll speed".tl,
settingsIndex: "readerScrollSpeed",
interval: 0.1,
min: 0.5,
max: 3,
onChanged: () {
widget.onChanged?.call("readerScrollSpeed");
},
comicId: isEnabledSpecificSettings ? widget.comicId : null,
comicSource: isEnabledSpecificSettings ? widget.comicSource : null,
),
),
_SwitchSetting(
title: 'Double tap to zoom'.tl,
settingKey: 'enableDoubleTapToZoom',