Skip to content

Commit

Permalink
Delay "reading mode" and "tap zone" preview until reader is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda committed Dec 30, 2024
1 parent f8d3be3 commit 9b706d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/reader/screens/Reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ const BaseReader = ({
const previousTapZoneInvertMode = useRef<IReaderSettingsWithDefaultFlag['tapZoneInvertMode']>();
const isInitialPreview = useRef(true);
useEffect(() => {
const mangaFromResponse = mangaResponse.data?.manga;
if (!mangaFromResponse || defaultSettingsResponse.loading || defaultSettingsResponse.error) {
if (isLoading || error) {
return;
}

Expand All @@ -314,6 +313,8 @@ const BaseReader = ({

isInitialPreview.current = false;
}, [
isLoading,
error,
readingMode.value,
readingMode.isDefault,
tapZoneLayout.value,
Expand Down

0 comments on commit 9b706d0

Please sign in to comment.