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;
|
const isLastPage = newPageIndex === totalPages - 1;
|
||||||
|
|
||||||
setPageToScrollToIndex(null);
|
setPageToScrollToIndex(null);
|
||||||
updateCurrentPageIndex(newPageIndex, !isLastPage);
|
updateCurrentPageIndex(newPageIndex, !isLastPage, isLastPage);
|
||||||
}, [pageToScrollToIndex]);
|
}, [pageToScrollToIndex]);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -473,7 +473,7 @@ export class ReaderControls {
|
|||||||
|
|
||||||
return useCallback(
|
return useCallback(
|
||||||
(pageIndex, debounceChapterUpdate = true, endReached = false) => {
|
(pageIndex, debounceChapterUpdate = true, endReached = false) => {
|
||||||
if (pageIndex === currentPageIndex) {
|
if (pageIndex === currentPageIndex && !endReached) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user