mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Fix scrolling to fractions
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user