Merge pull request #2663 from JKI12/master

Fixes resuming of books
This commit is contained in:
Bill Thornton 2021-06-11 01:37:27 -04:00 committed by GitHub
commit ae72d31329
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,7 +203,7 @@ export class PdfPlayer {
const percentageTicks = options.startPositionTicks / 10000; const percentageTicks = options.startPositionTicks / 10000;
if (percentageTicks !== 0) { if (percentageTicks !== 0) {
this.loadPage(percentageTicks); this.loadPage(percentageTicks + 1);
this.progress = percentageTicks; this.progress = percentageTicks;
} else { } else {
this.loadPage(1); this.loadPage(1);