Browse Source

fix: 623 业态气泡偶现消失

v1.0.1
jiannibang 3 years ago
parent
commit
d96c865220
  1. 3
      src/components/BrandScroll/BrandScroll.vue

3
src/components/BrandScroll/BrandScroll.vue

@ -70,7 +70,8 @@ const indicatorIndex = computed(() =>
bounds.value.findIndex((el, i) => { bounds.value.findIndex((el, i) => {
const start = 40 - y.value const start = 40 - y.value
if (i === 0 && start < el) return true 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( useMutationObserver(

Loading…
Cancel
Save