From f69fbd71d2d04ab88243a3203450f70aa3ec40a9 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 13 Dec 2024 02:30:49 +0100 Subject: [PATCH] Open previous chapter transition page in double page mode For the double page mode the secondary page index gets used. This was changed with 9a8655db2fdc3077396d75c693d8262b595884c6, however, this occurrence was overlooked --- src/modules/reader/services/ReaderControls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/reader/services/ReaderControls.ts b/src/modules/reader/services/ReaderControls.ts index e4717487..9e648cc6 100644 --- a/src/modules/reader/services/ReaderControls.ts +++ b/src/modules/reader/services/ReaderControls.ts @@ -261,7 +261,7 @@ export class ReaderControls { const indexOfLastPage = getNextIndexFromPage(pages[pages.length - 1]); const direction = READING_DIRECTION_TO_THEME_DIRECTION[readingDirection.value]; - const isFirstPage = currentPageIndex === 0; + const isFirstPage = currentPage.primary.index === 0; const isLastPage = currentPageIndex === indexOfLastPage; const isATransitionPageVisible = transitionPageMode !== ReaderTransitionPageMode.NONE; const isContinuousReadingModeActive = isContinuousReadingMode(readingMode.value);