Merge pull request #109 from vadimkorr/bugfix/#94_Fix-dispatch-pageChange-event
#94 Fix dispatching pageChange event
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user