Skip to content

Commit

Permalink
Paginator: needn't fix tabbing in scrolled mode
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfactotum committed Sep 14, 2024
1 parent 3b96ddf commit c17b542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paginator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
})
Expand Down

0 comments on commit c17b542

Please sign in to comment.