mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Paginator: needn't fix tabbing in scrolled mode
This commit is contained in:
+1
-1
@@ -520,7 +520,7 @@ export class Paginator extends HTMLElement {
|
|||||||
doc.addEventListener('touchmove', this.#onTouchMove.bind(this), opts)
|
doc.addEventListener('touchmove', this.#onTouchMove.bind(this), opts)
|
||||||
doc.addEventListener('touchend', this.#onTouchEnd.bind(this))
|
doc.addEventListener('touchend', this.#onTouchEnd.bind(this))
|
||||||
|
|
||||||
doc.addEventListener('focusin', e =>
|
doc.addEventListener('focusin', e => this.scrolled ? null :
|
||||||
// NOTE: `requestAnimationFrame` is needed in WebKit
|
// NOTE: `requestAnimationFrame` is needed in WebKit
|
||||||
requestAnimationFrame(() => this.scrollToAnchor(e.target)))
|
requestAnimationFrame(() => this.scrollToAnchor(e.target)))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user