diff --git a/src/routes/scene/components/DesktopPet.svelte b/src/routes/scene/components/DesktopPet.svelte index 9c25dbd..20c7a8c 100644 --- a/src/routes/scene/components/DesktopPet.svelte +++ b/src/routes/scene/components/DesktopPet.svelte @@ -63,7 +63,9 @@ // 100ms per frame for the animation loop if (timestamp - lastFrameTimestamp > 100) { lastFrameTimestamp = timestamp; - updatePosition(targetX, targetY, window.innerWidth, window.innerHeight); + if (!isPetMenuOpen) { + updatePosition(targetX, targetY, window.innerWidth, window.innerHeight); + } } animationFrameId = requestAnimationFrame(frame);