Merge pull request #109 from vadimkorr/bugfix/#94_Fix-dispatch-pageChange-event

#94 Fix dispatching pageChange event
This commit is contained in:
Vadim
2022-05-05 17:48:52 +03:00
committed by GitHub

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