diff --git a/paginator.js b/paginator.js index 21551a5..c47fbe3 100644 --- a/paginator.js +++ b/paginator.js @@ -796,7 +796,7 @@ export class Paginator extends HTMLElement { } #getVisibleRange() { if (this.scrolled) return getVisibleRange(this.#view.document, - this.start, this.end, this.#getRectMapper()) + this.start + this.#margin, this.end - this.#margin, this.#getRectMapper()) const size = this.#rtl ? -this.size : this.size return getVisibleRange(this.#view.document, this.start - size, this.end - size, this.#getRectMapper())