We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb7df30 + af6073c commit 93ef0f8Copy full SHA for 93ef0f8
src/runtime/components/Carousel.vue
@@ -225,9 +225,17 @@ watch(options, () => {
225
226
function scrollPrev() {
227
emblaApi.value?.scrollPrev()
228
+
229
+ if (props.autoplay && (typeof props.autoplay === 'boolean' || props.autoplay.stopOnInteraction !== false)) {
230
+ emblaApi.value?.plugins().autoplay?.stop()
231
+ }
232
}
233
function scrollNext() {
234
emblaApi.value?.scrollNext()
235
236
237
238
239
240
function scrollTo(index: number) {
241
emblaApi.value?.scrollTo(index)
0 commit comments