Skip to content

Commit f2b6cfb

Browse files
committed
Min Distance Adjustment
1 parent b959785 commit f2b6cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/earth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function initEarth() {
9696
controls.enableDamping = true; // an animation loop is required when either damping or auto-rotation are enabled
9797
controls.dampingFactor = 0.05;
9898
controls.screenSpacePanning = false;
99-
controls.minDistance = 5; // Prevent zooming in too close
99+
controls.minDistance = 8; // Prevent zooming in too close
100100
controls.maxDistance = 12; // Prevent zooming out too far
101101
controls.enablePan = false; // Disable panning (optional, keeps focus on rotation)
102102
controls.autoRotate = true; // Disable auto-rotate for testing interaction

0 commit comments

Comments
 (0)