Add hotkeys to switch auto scroll direction

While auto scroll is active, the direction can be changed via the "scroll backward/forward" hotkeys
This commit is contained in:
schroda
2025-07-04 03:31:33 +02:00
parent 0fbab00b06
commit da78ce3181
4 changed files with 56 additions and 9 deletions

View File

@@ -18,6 +18,7 @@ export const ReaderAutoScrollContext = createContext<TReaderAutoScrollContext>({
toggleActive: () => {},
pause: () => {},
resume: () => {},
setDirection: () => {},
});
export const useReaderAutoScrollContext = () => useContext(ReaderAutoScrollContext);