From bb5d3751d47d23a55a63a42503a952d72eaa33dc Mon Sep 17 00:00:00 2001 From: uNagi Date: Sat, 10 Jan 2026 09:43:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20src/app/page.tsx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/page.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 8aedd11..7c3d7d2 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -23,11 +23,9 @@ export default function Home() { const [isHovered, setIsHovered] = useState(false); useEffect(() => { - // 添加防抖处理,减少状态更新频率 let timeoutId: number | undefined; const handleMouseMove = (e: MouseEvent) => { - // 使用防抖,每16ms更新一次(约60fps) clearTimeout(timeoutId); timeoutId = window.setTimeout(() => { setMousePosition({ x: e.clientX, y: e.clientY }); @@ -87,7 +85,6 @@ export default function Home() {