Fixed the book reader off by one issue with loading last page (#911)
This commit is contained in:
parent
2bd35b33ad
commit
bb978484db
1 changed files with 1 additions and 1 deletions
|
@ -812,7 +812,7 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
this.setPageNum(this.pageNum - 1);
|
||||
}
|
||||
|
||||
if (this.pageNum >= this.maxPages - 1) {
|
||||
if (this.pageNum === this.maxPages - 1) {
|
||||
// Move to next volume/chapter automatically
|
||||
this.loadNextChapter();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue