From ef5ca72ba68ea9ede3120578ac1a0434f125091d Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Mon, 20 Mar 2023 15:46:01 +0800 Subject: [PATCH] Fix scrolling to fractions --- paginator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paginator.js b/paginator.js index af84bcf..8849c94 100644 --- a/paginator.js +++ b/paginator.js @@ -573,7 +573,7 @@ export class Paginator { return this.#scrollTo(offset, reason) } async #scrollToAnchor(select) { - const rects = uncollapse(this.#anchor)?.getClientRects() + const rects = uncollapse(this.#anchor)?.getClientRects?.() // if anchor is an element or a range if (rects) { // when the start of the range is immediately after a hyphen in the