Fix marking chapter as read for single page chapters in paged pagers
Regression from 174d850093
This commit is contained in:
@@ -49,6 +49,6 @@ export const useReaderHandlePageSelection = (
|
||||
const isLastPage = newPageIndex === totalPages - 1;
|
||||
|
||||
setPageToScrollToIndex(null);
|
||||
updateCurrentPageIndex(newPageIndex, !isLastPage);
|
||||
updateCurrentPageIndex(newPageIndex, !isLastPage, isLastPage);
|
||||
}, [pageToScrollToIndex]);
|
||||
};
|
||||
|
||||
@@ -473,7 +473,7 @@ export class ReaderControls {
|
||||
|
||||
return useCallback(
|
||||
(pageIndex, debounceChapterUpdate = true, endReached = false) => {
|
||||
if (pageIndex === currentPageIndex) {
|
||||
if (pageIndex === currentPageIndex && !endReached) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user