mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
[Bug-Fix] Fix last page skipping in 2 column mode (#2420)
This commit is contained in:
parent
ea56e517dc
commit
6c512ee0dc
@ -1216,7 +1216,7 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
|
|
||||||
const [scrollOffset, totalScroll] = this.getScrollOffsetAndTotalScroll();
|
const [scrollOffset, totalScroll] = this.getScrollOffsetAndTotalScroll();
|
||||||
const pageSize = this.getPageSize();
|
const pageSize = this.getPageSize();
|
||||||
const totalVirtualPages = Math.max(1, Math.round(totalScroll / pageSize));
|
const totalVirtualPages = Math.max(1, Math.ceil(totalScroll / pageSize));
|
||||||
const delta = scrollOffset - totalScroll;
|
const delta = scrollOffset - totalScroll;
|
||||||
let currentVirtualPage = 1;
|
let currentVirtualPage = 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user