Auto open next page after first change in single/double pager
This commit is contained in:
@@ -40,7 +40,7 @@ const BaseReaderAutoScrollContextProvider = ({
|
|||||||
|
|
||||||
const changePage = useCallback(() => {
|
const changePage = useCallback(() => {
|
||||||
openPage('next', 'ltr');
|
openPage('next', 'ltr');
|
||||||
}, []);
|
}, [openPage]);
|
||||||
|
|
||||||
const automaticScrolling = useAutomaticScrolling(
|
const automaticScrolling = useAutomaticScrolling(
|
||||||
isContinuousReadingModeActive ? scrollRef : changePage,
|
isContinuousReadingModeActive ? scrollRef : changePage,
|
||||||
|
|||||||
Reference in New Issue
Block a user