This commit is contained in:
Joe Milazzo 2023-11-20 07:03:34 -06:00 committed by GitHub
parent 1d261a5a7c
commit 65ccdc7301
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 375 additions and 590 deletions

View file

@ -560,6 +560,8 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {
this.clearTimeout(this.clickToPaginateVisualOverlayTimeout);
this.clearTimeout(this.clickToPaginateVisualOverlayTimeout2);
this.readerService.disableWakeLock();
this.themeService.clearBookTheme();
this.themeService.currentTheme$.pipe(take(1)).subscribe(theme => {
@ -679,6 +681,7 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {
// Check if user progress has part, if so load it so we scroll to it
this.loadPage(results.progress.bookScrollId || undefined);
this.readerService.enableWakeLock(this.reader.nativeElement);
}, () => {
setTimeout(() => {
this.closeReader();