mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Fixed the book reader off by one issue with loading last page (#911)
This commit is contained in:
parent
2bd35b33ad
commit
bb978484db
@ -812,7 +812,7 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
this.setPageNum(this.pageNum - 1);
|
this.setPageNum(this.pageNum - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.pageNum >= this.maxPages - 1) {
|
if (this.pageNum === this.maxPages - 1) {
|
||||||
// Move to next volume/chapter automatically
|
// Move to next volume/chapter automatically
|
||||||
this.loadNextChapter();
|
this.loadNextChapter();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user