Fix increase/decrease of auto scroll speed

Hotkeys were switched and did the opposite of their intended action
This commit is contained in:
schroda
2025-04-05 13:01:40 +02:00
parent d89fbf9cf5
commit e6a105c766

View File

@@ -200,7 +200,7 @@ export const ReaderHotkeys = ({
automaticScrolling.toggleActive, automaticScrolling.toggleActive,
]); ]);
useHotkeys( useHotkeys(
hotkeys[ReaderHotkey.AUTO_SCROLL_SPEED_INCREASE], hotkeys[ReaderHotkey.AUTO_SCROLL_SPEED_DECREASE],
() => () =>
updateSetting('autoScroll', { updateSetting('autoScroll', {
...autoScroll, ...autoScroll,
@@ -209,7 +209,7 @@ export const ReaderHotkeys = ({
[updateSetting, autoScroll.value], [updateSetting, autoScroll.value],
); );
useHotkeys( useHotkeys(
hotkeys[ReaderHotkey.AUTO_SCROLL_SPEED_DECREASE], hotkeys[ReaderHotkey.AUTO_SCROLL_SPEED_INCREASE],
() => () =>
updateSetting('autoScroll', { updateSetting('autoScroll', {
...autoScroll, ...autoScroll,