From c17b542b5cf51463441e64ed3395784d94f69ba9 Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Sat, 14 Sep 2024 23:18:27 +0800 Subject: [PATCH] Paginator: needn't fix tabbing in scrolled mode --- paginator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paginator.js b/paginator.js index 9c01cb4..d53bc4d 100644 --- a/paginator.js +++ b/paginator.js @@ -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))) })