#94 : Dispatch pageChange

This commit is contained in:
Vadim
2022-05-04 23:14:29 +03:00
parent 0709dafeaa
commit 086a68c242

View File

@@ -21,6 +21,10 @@
// used for lazy loading images, preloaded only current, adjacent and cloanable images // used for lazy loading images, preloaded only current, adjacent and cloanable images
let loaded = [] let loaded = []
let currentPageIndex let currentPageIndex
$: {
dispatch('pageChange', currentPageIndex)
}
let progressValue let progressValue
let offset = 0 let offset = 0
let durationMs = 0 let durationMs = 0