diff --git a/src/screens/Reader.tsx b/src/screens/Reader.tsx index 5197f7cd..ffd59af2 100644 --- a/src/screens/Reader.tsx +++ b/src/screens/Reader.tsx @@ -182,6 +182,10 @@ export function Reader() { ); const updateChapter = (patch: UpdateChapterPatchInput) => { + if (chapter === initialChapter) { + return; + } + const getChapterIdToDelete = () => { const isAutoDeletionEnabled = !!patch.isRead && !!metadataSettings.deleteChaptersWhileReading; if (!isAutoDeletionEnabled || !mangaChapters) { @@ -347,6 +351,10 @@ export function Reader() { return; } + if (chapter === initialChapter) { + return; + } + // do not mutate the chapter, this will cause the page to jump around due to always scrolling to the last read page const updateLastPageRead = curPageDebounced !== -1; const updateIsRead = curPageDebounced === chapter.pageCount - 1;