Skip to content

Commit 122ab80

Browse files
committed
Fix: mobile carousel not resizing
1 parent 2ec6f1d commit 122ab80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pages/PageProject.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@ export default {
4545
var oldCarousel = this.cE('carousel-container')[0]
4646
if (oldCarousel) {
4747
this.initializeCarousel()
48-
Store.flickityGallery.resize()
4948
clearInterval(interval)
5049
}
5150
}, 10)
5251
}, projectId)
52+
var timer = setTimeout(() => {
53+
Store.flickityGallery.resize()
54+
clearTimeout(timer)
55+
}, 500)
5356
}
5457
}
5558
</script>

0 commit comments

Comments
 (0)