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