Fix page flip throttling

This commit is contained in:
John Factotum
2023-05-27 00:06:27 +08:00
parent 36a8fb62e7
commit 4c481214cb
+1
View File
@@ -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())