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,
]);
useHotkeys(
hotkeys[ReaderHotkey.AUTO_SCROLL_SPEED_INCREASE],
hotkeys[ReaderHotkey.AUTO_SCROLL_SPEED_DECREASE],
() =>
updateSetting('autoScroll', {
...autoScroll,
@@ -209,7 +209,7 @@ export const ReaderHotkeys = ({
[updateSetting, autoScroll.value],
);
useHotkeys(
hotkeys[ReaderHotkey.AUTO_SCROLL_SPEED_DECREASE],
hotkeys[ReaderHotkey.AUTO_SCROLL_SPEED_INCREASE],
() =>
updateSetting('autoScroll', {
...autoScroll,