From 8ba1216d20e8b386eb09a0353e7531aa445e04bf Mon Sep 17 00:00:00 2001 From: moshangqi <2509678669@qq.com> Date: Mon, 18 Dec 2023 14:32:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=90=E5=8D=87=E9=80=89=E5=8F=96?= =?UTF-8?q?=E5=89=AA=E8=97=8F=E7=9A=84=E5=85=BC=E5=AE=B9=E6=80=A7=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/inject/AreaSelector/app.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/inject/AreaSelector/app.tsx b/src/pages/inject/AreaSelector/app.tsx index a6b941d8..01b79005 100644 --- a/src/pages/inject/AreaSelector/app.tsx +++ b/src/pages/inject/AreaSelector/app.tsx @@ -119,10 +119,10 @@ function App(props: IAppProps) { }, 200); }; - window.addEventListener('mouseover', handleMouseOver); + window.addEventListener('mouseover', handleMouseOver, true); window.addEventListener('click', onToggleSelect, true); return () => { - window.removeEventListener('mouseover', handleMouseOver); + window.removeEventListener('mouseover', handleMouseOver, true); window.removeEventListener('click', onToggleSelect, true); }; }, []);