Paginator: needn't fix tabbing in scrolled mode

This commit is contained in:
John Factotum
2024-09-14 23:18:27 +08:00
parent 3b96ddf3e6
commit c17b542b5c
+1 -1
View File
@@ -520,7 +520,7 @@ export class Paginator extends HTMLElement {
doc.addEventListener('touchmove', this.#onTouchMove.bind(this), opts)
doc.addEventListener('touchend', this.#onTouchEnd.bind(this))
doc.addEventListener('focusin', e =>
doc.addEventListener('focusin', e => this.scrolled ? null :
// NOTE: `requestAnimationFrame` is needed in WebKit
requestAnimationFrame(() => this.scrollToAnchor(e.target)))
})