From 34488867e078cf6fd7a45fdccd3b55740a329bcf Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 00:52:12 +0200 Subject: [PATCH] Add constants for smooth zoom response --- src/viewport-three/viewport-host.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index 9a917b4e..0432404d 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -427,6 +427,9 @@ const MIN_CAMERA_DISTANCE = 1.5; const MAX_CAMERA_DISTANCE = 400; const ORBIT_ROTATION_SPEED = 0.0085; const ZOOM_SPEED = 0.0014; +const SMOOTH_ZOOM_RESPONSE = 22; +const SMOOTH_ZOOM_IMMEDIATE_RESPONSE = 0.42; +const SMOOTH_ZOOM_SNAP_EPSILON = 0.0015; const MIN_POLAR_ANGLE = 0.12; const MAX_POLAR_ANGLE = Math.PI - 0.12; const FOCUS_MARGIN = 1.35;