From 87bb6de9d0021263c30121f324c9ec9b9c13947b Mon Sep 17 00:00:00 2001 From: Jake King Date: Thu, 6 May 2021 19:51:17 +0100 Subject: [PATCH] Fixes resuming of books - Adds 1 to the page number when a pecentageTicks is returned --- src/plugins/pdfPlayer/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/pdfPlayer/plugin.js b/src/plugins/pdfPlayer/plugin.js index 40d6041ad..6d644c48c 100644 --- a/src/plugins/pdfPlayer/plugin.js +++ b/src/plugins/pdfPlayer/plugin.js @@ -203,7 +203,7 @@ export class PdfPlayer { const percentageTicks = options.startPositionTicks / 10000; if (percentageTicks !== 0) { - this.loadPage(percentageTicks); + this.loadPage(percentageTicks + 1); this.progress = percentageTicks; } else { this.loadPage(1);