From 0b690577da857ce2227951fdf3bce77517dae9da Mon Sep 17 00:00:00 2001 From: Forgenn <35640780+Forgenn@users.noreply.github.com> Date: Mon, 17 May 2021 09:57:14 +0200 Subject: [PATCH] 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 --- .../src/components/navbar/ReaderNavBar.tsx | 11 +++++++++ .../components/reader/pager/PagedPager.tsx | 11 +++++++-- .../components/reader/pager/VerticalPager.tsx | 24 ++++++++++++++++--- webUI/react/src/screens/Reader.tsx | 3 ++- webUI/react/src/typings.d.ts | 3 +++ 5 files changed, 46 insertions(+), 6 deletions(-) diff --git a/webUI/react/src/components/navbar/ReaderNavBar.tsx b/webUI/react/src/components/navbar/ReaderNavBar.tsx index 7b87c95b..c3f674fd 100644 --- a/webUI/react/src/components/navbar/ReaderNavBar.tsx +++ b/webUI/react/src/components/navbar/ReaderNavBar.tsx @@ -143,6 +143,7 @@ export const defaultReaderSettings = () => ({ staticNav: false, showPageNumber: true, continuesPageGap: false, + loadNextonEnding: false, readerType: 'ContinuesVertical', } as IReaderSettings); @@ -277,6 +278,16 @@ export default function ReaderNavBar(props: IProps) { /> + + + + setSettingValue('loadNextonEnding', e.target.checked)} + /> + +