mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-10-22 06:49:51 -04:00
Fix scrolling to fractions
This commit is contained in:
1 parent
1511884137
commit
ef5ca72ba6
1 file changed
+1
-1
+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