Fix history state not updated when swiping

This commit is contained in:
John Factotum
2023-05-27 00:04:26 +08:00
parent 772cbe00ca
commit 36a8fb62e7
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -608,7 +608,7 @@ export class Paginator extends HTMLElement {
index: this.#adjacentIndex(dir),
anchor: dir < 0 ? () => 1 : () => 0,
})
})
}).then(() => this.dispatchEvent(new Event('snapend')))
}
#onTouchStart(e) {
const touch = e.changedTouches[0]