diff --git a/components/CarouselPagination.vue b/components/CarouselPagination.vue index 61be4b9..fe6117d 100644 --- a/components/CarouselPagination.vue +++ b/components/CarouselPagination.vue @@ -3,9 +3,10 @@ @@ -18,8 +19,8 @@ const carousel = inject(injectCarousel)!; const amount = carousel.maxSlide - carousel.minSlide + 1; -// function slideTo(index: number) { -// const offsetIndex = index + carousel.minSlide; -// carousel.nav.slideTo(offsetIndex); -// } - +function slideTo(index: number) { + const offsetIndex = index + carousel.minSlide; + carousel.nav.slideTo(offsetIndex); +} + \ No newline at end of file diff --git a/components/StoreView.vue b/components/StoreView.vue index ea9bdaa..97e91fb 100644 --- a/components/StoreView.vue +++ b/components/StoreView.vue @@ -292,7 +292,7 @@