From 3ae0207bed7eaab4fb941f46e428009e7ef4cc3a Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 27 Dec 2024 04:53:25 +0100 Subject: [PATCH] Apply "auto scroll speed" limits to slider input --- src/modules/reader/constants/ReaderSettings.constants.tsx | 6 +++--- src/modules/source/screens/SourceMangas.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/reader/constants/ReaderSettings.constants.tsx b/src/modules/reader/constants/ReaderSettings.constants.tsx index eae181bd..52a56e66 100644 --- a/src/modules/reader/constants/ReaderSettings.constants.tsx +++ b/src/modules/reader/constants/ReaderSettings.constants.tsx @@ -282,7 +282,7 @@ export const CONTINUOUS_READING_MODE_TO_SCROLL_DIRECTION: Record< }; export const AUTO_SCROLL_SPEED = { - MIN: 0.5, - MAX: 60, - STEP: 0.5, + min: 0.5, + max: 60, + step: 0.5, }; diff --git a/src/modules/source/screens/SourceMangas.tsx b/src/modules/source/screens/SourceMangas.tsx index 8da6972c..63c1a353 100644 --- a/src/modules/source/screens/SourceMangas.tsx +++ b/src/modules/source/screens/SourceMangas.tsx @@ -221,7 +221,7 @@ export function SourceMangas() { const { settings: { hideLibraryEntries }, } = useMetadataServerSettings(); - console.log('@asdf', locationKey); + const [sourceGridLayout] = useLocalStorage('source-grid-layout', GridLayout.Compact); const [query] = useQueryParam('query', StringParam); const [currentFiltersToApply, setCurrentFiltersToApply] = useSessionStorage(