From 4c692a01a54c5c373b4719ad182cd76962a1641e Mon Sep 17 00:00:00 2001 From: imnyang Date: Sun, 21 Dec 2025 05:15:23 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=84=B1=20=EA=B0=9C?= =?UTF-8?q?=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DraggableWindose.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/DraggableWindose.tsx b/src/components/DraggableWindose.tsx index 1bac1d5..ab19dd6 100644 --- a/src/components/DraggableWindose.tsx +++ b/src/components/DraggableWindose.tsx @@ -74,18 +74,18 @@ export default function DraggableWindose({ targetPosition, isVisible, onClose, o }; }, [isDragging, dragOffset, shakeCount]); - useEffect(() => { - if (isDragging || targetPosition) return; + // useEffect(() => { + // if (isDragging || targetPosition) return; - const interval = setInterval(() => { - setPosition({ - x: Math.random() * (window.innerWidth - 500), - y: Math.random() * (window.innerHeight - 400), - }); - }, 500); + // const interval = setInterval(() => { + // setPosition({ + // x: Math.random() * (window.innerWidth - 500), + // y: Math.random() * (window.innerHeight - 400), + // }); + // }, 500); - return () => clearInterval(interval); - }, [isDragging, targetPosition]); + // return () => clearInterval(interval); + // }, [isDragging, targetPosition]); useEffect(() => { if (targetPosition && !isDragging) {