From 70c541d57ccb7900b21838078ad4fdce74846442 Mon Sep 17 00:00:00 2001 From: Mikuisnotavailable Date: Sat, 10 Jan 2026 16:34:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E9=BC=A0=E6=A0=87=E8=B7=9F=E9=9A=8F=E5=85=83=E7=B4=A0=E7=9A=84?= =?UTF-8?q?=E9=98=B2=E6=8A=96=E5=A4=84=E7=90=86,=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E6=88=91=E5=8F=91=E7=8E=B0=E6=8A=96=E5=8A=A8=E6=98=AF=E5=9B=A0?= =?UTF-8?q?=E4=B8=BA=E6=88=91=E8=BF=99=E8=BE=B9=E6=80=A7=E8=83=BD=E4=B8=8D?= =?UTF-8?q?=E8=A1=8C=EF=BC=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/page.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 7c3d7d2..7579db7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -23,22 +23,15 @@ export default function Home() { const [isHovered, setIsHovered] = useState(false); useEffect(() => { - let timeoutId: number | undefined; const handleMouseMove = (e: MouseEvent) => { - clearTimeout(timeoutId); - timeoutId = window.setTimeout(() => { - setMousePosition({ x: e.clientX, y: e.clientY }); - }, 16); + setMousePosition({ x: e.clientX, y: e.clientY }); }; window.addEventListener('mousemove', handleMouseMove); return () => { window.removeEventListener('mousemove', handleMouseMove); - if (timeoutId) { - clearTimeout(timeoutId); - } }; }, []);