From d96c865220f383368874fdfa4dc6a7aeec78dc8d Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Mon, 30 Jan 2023 10:24:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20623=20=E4=B8=9A=E6=80=81=E6=B0=94?= =?UTF-8?q?=E6=B3=A1=E5=81=B6=E7=8E=B0=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BrandScroll/BrandScroll.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(