freeze pet when pet menu is opened
This commit is contained in:
@@ -63,8 +63,10 @@
|
||||
// 100ms per frame for the animation loop
|
||||
if (timestamp - lastFrameTimestamp > 100) {
|
||||
lastFrameTimestamp = timestamp;
|
||||
if (!isPetMenuOpen) {
|
||||
updatePosition(targetX, targetY, window.innerWidth, window.innerHeight);
|
||||
}
|
||||
}
|
||||
|
||||
animationFrameId = requestAnimationFrame(frame);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user