Add option to offset first page in double page reader (#418)

* added toggle for doublespreads

* changing pages works as intended

* undid package.json changes

* deleted packege lock json

* curPage changes when changing invertDoublePage

* changed yarn.lock

* it switches better now

* fixed formatting

* changed it to offset first page

* fixed flipping when switching

* offset first page hides when double page is not enabled

* removed uncreachable line
This commit is contained in:
Robert Perez
2023-09-27 18:36:47 -04:00
committed by GitHub
parent 9daf71d85c
commit 3155c1d602
7 changed files with 36 additions and 7 deletions

View File

@@ -21,6 +21,7 @@ export const getDefaultSettings = (): IReaderSettings => ({
skipDupChapters: true,
fitPageToWindow: false,
readerType: 'ContinuesVertical',
offsetFirstPage: false,
});
const getReaderSettingsWithDefaultValueFallback = <DefaultSettings extends IReaderSettings | UndefinedReaderSettings>(
@@ -74,6 +75,7 @@ export const checkAndHandleMissingStoredReaderSettings = async (
skipDupChapters: undefined,
fitPageToWindow: undefined,
readerType: undefined,
offsetFirstPage: undefined,
},
false,
);