Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Fixed the book reader off by one issue with loading last page (#911)

Joseph Milazzobb978484db24
diff --git a/UI/Web/src/app/book-reader/book-reader/book-reader.component.ts b/UI/Web/src/app/book-reader/book-reader/book-reader.component.ts
index 318c6edb9..ff7b04a1a 100644
--- a/UI/Web/src/app/book-reader/book-reader/book-reader.component.ts
+++ b/UI/Web/src/app/book-reader/book-reader/book-reader.component.ts
@@ -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();
}