diff --git a/front/src/components/SnowGlobeCanvas/SnowGlobeCanvas.tsx b/front/src/components/SnowGlobeCanvas/SnowGlobeCanvas.tsx index c55b3d6..89e7b6c 100644 --- a/front/src/components/SnowGlobeCanvas/SnowGlobeCanvas.tsx +++ b/front/src/components/SnowGlobeCanvas/SnowGlobeCanvas.tsx @@ -34,7 +34,7 @@ const SnowGlobeCanvas = React.memo( ( = ({ isClickedRef }) => { const zoomOutSpeed = 1 + delta * 2; if (isAnimating.current) { if (isClicked && !isZoom) { - const targetPosition = new THREE.Vector3(0, 3.5, 0); + const targetPosition = new THREE.Vector3(0, 2.5, 0); setView(true); - if (camera.position.distanceTo(targetPosition) > 6.5) { + if (camera.position.distanceTo(targetPosition) > 6) { camera.position.lerp(targetPosition, delta * 2); } else { isAnimating.current = false; @@ -35,7 +35,7 @@ const Raycaster: React.FC = ({ isClickedRef }) => { if (view) { setIsZoom(true); } else if (isZoom && !view) { - if (camera.position.distanceTo(new THREE.Vector3(0, 3.5, 0)) < 25) { + if (camera.position.distanceTo(new THREE.Vector3(0, 3.5, 0)) < 15) { camera.position.x = camera.position.x * zoomOutSpeed; camera.position.y = camera.position.y * zoomOutSpeed; camera.position.z = camera.position.z * zoomOutSpeed;