From c3cb633e577c61cbdf48d64087348882b710d40a Mon Sep 17 00:00:00 2001 From: xpyjs Date: Wed, 24 May 2023 18:22:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=90=8E=E5=B1=95=E7=A4=BA=E4=B8=8D=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closed #41 --- src/composables/useInView.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/composables/useInView.ts b/src/composables/useInView.ts index c9bfd23..b97d160 100644 --- a/src/composables/useInView.ts +++ b/src/composables/useInView.ts @@ -35,7 +35,8 @@ export default () => { if ( inView[i].hide || inView[i].flatIndex <= top.value || - inView[i].flatIndex >= bottom.value + inView[i].flatIndex >= bottom.value || + store.$data.flatData[inView[i].flatIndex].id !== inView[i].id ) { inView.splice(i, 1); }