From 4c481214cbbfe44c2bbf5f99561815161839ed3e Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Sat, 27 May 2023 00:06:27 +0800 Subject: [PATCH] Fix page flip throttling --- paginator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/paginator.js b/paginator.js index 3239270..cd4626e 100644 --- a/paginator.js +++ b/paginator.js @@ -852,6 +852,7 @@ export class Paginator extends HTMLElement { if (this.sections[index]?.linear !== 'no') return index } async #turnPage(dir) { + if (this.#locked) return this.#locked = true const prev = dir === -1 const shouldGo = await (prev ? this.#scrollPrev() : this.#scrollNext())