#31 : Reset progress on destroy
This commit is contained in:
@@ -188,6 +188,7 @@
|
||||
currentPageIndex = value.currentPageIndex
|
||||
console.log('currentPageIndex', currentPageIndex)
|
||||
}))
|
||||
cleanupFns.push(() => progressManager.reset())
|
||||
if (pagesElement && pageWindowElement) {
|
||||
// load first and last child to clone them
|
||||
loaded = [0, pagesElement.children.length - 1]
|
||||
|
||||
@@ -51,6 +51,4 @@ export class ProgressManager {
|
||||
reset() {
|
||||
clearInterval(this.#interval)
|
||||
}
|
||||
|
||||
// TODO: add on destroy
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user