Load next chapter when getting to the last page (#84)

* Load next chapter when scrolling to the bottom (Webtoon, Continues Vertical)

* Load next chapter when scrolling to the bottom (Paged reader)

* Added missing types to IReaderProps

* Move load next chapter when at last page to VerticalReader

* Dependency fix

* Use react history for loading next page
This commit is contained in:
Forgenn
2021-05-17 09:57:14 +02:00
committed by GitHub
parent e9683a3a37
commit 0b690577da
5 changed files with 46 additions and 6 deletions

View File

@@ -99,6 +99,7 @@ type ReaderType =
interface IReaderSettings{
staticNav: boolean
showPageNumber: boolean
loadNextonEnding: boolean
readerType: ReaderType
}
@@ -113,4 +114,6 @@ interface IReaderProps {
setCurPage: React.Dispatch<React.SetStateAction<number>>
curPage: number
settings: IReaderSettings
manga: IMangaCard | IManga
chapter: IChapter | IPartialChpter
}