mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Fix visible range
This commit is contained in:
+4
-1
@@ -663,8 +663,11 @@ export class Paginator extends HTMLElement {
|
||||
}
|
||||
}
|
||||
#getVisibleRange() {
|
||||
if (this.scrolled) return getVisibleRange(this.#view.document,
|
||||
this.start, this.end, this.#getRectMapper())
|
||||
const { size } = this
|
||||
return getVisibleRange(this.#view.document,
|
||||
this.start, this.end, this.#getRectMapper(), this.scrolled)
|
||||
this.start - size, this.end - size, this.#getRectMapper())
|
||||
}
|
||||
#afterScroll(reason) {
|
||||
const range = this.#getVisibleRange()
|
||||
|
||||
Reference in New Issue
Block a user