diff --git a/src/components/BrandScroll/BrandScroll.vue b/src/components/BrandScroll/BrandScroll.vue index 809efae..4a38635 100644 --- a/src/components/BrandScroll/BrandScroll.vue +++ b/src/components/BrandScroll/BrandScroll.vue @@ -70,7 +70,8 @@ const indicatorIndex = computed(() => bounds.value.findIndex((el, i) => { const start = 40 - y.value if (i === 0 && start < el) return true - return start > bounds.value[i - 1] && start < el + if (i === bounds.value.length - 1) return true + return start > bounds.value[i - 1] && start <= el }) ) useMutationObserver(