diff --git a/src/components/Carousel/Carousel.svelte b/src/components/Carousel/Carousel.svelte index c82631c..ac518c6 100644 --- a/src/components/Carousel/Carousel.svelte +++ b/src/components/Carousel/Carousel.svelte @@ -228,14 +228,13 @@ // Disable page change while animation is in progress let disabled = false function safeChangePage(cb, options) { - applyAutoplay() const animated = get(options, 'animated', true) if (disabled) return cb() disabled = true setTimeout(() => { disabled = false - + applyAutoplay() }, animated ? duration : 0) } diff --git a/src/utils/ProgressManager.js b/src/utils/ProgressManager.js index 78b9f94..339ba76 100644 --- a/src/utils/ProgressManager.js +++ b/src/utils/ProgressManager.js @@ -36,7 +36,6 @@ export class ProgressManager { if (value > 1) { this.reset() onFinish() - this.start(onFinish) } }, stepMs) }