fix(camera): let a two-finger tilt win over finger-spacing drift

Above 300 km the guard treated any shrinking pinch distance as an outward
zoom, so a two-finger tilt whose fingers drifted slightly closer had its
pitch overwritten. A two-finger gesture now counts as a zoom only when the
spacing changes more than the fingers' midpoint moves.
This commit is contained in:
Sameh Khamis committed 2026-11-03 09:10:58 -08:00
1 parent e4b3933166
commit b817d5802b
3 files changed
+44 -5

No files matched your search

+4 -2
View File
@@ -54,8 +54,10 @@ Above 300 km, outward movement from the controller's configured zoom bindings
down towards 8° below the Earth's limb. Large steps reach the limb immediately;
the remaining margin eases into place, including after zooming stops or reaches
the ceiling. Continuous outward inertia remains guarded without a time cutoff.
Parallel two-finger tilts, modifier-specific tilts and other camera gestures
cancel the correction. Explicit navigation handoffs, including toolbar tilt,
Two-finger tilts, modifier-specific tilts and other camera gestures cancel the
correction. A two-finger gesture counts as a pinch zoom only while the finger
spacing changes more than the fingers move up or down, so spacing drift during
a tilt is ignored. Explicit navigation handoffs, including toolbar tilt,
cancel it before animation begins. Zooming in, disabled zoom/input, non-3D modes, tracked
transforms and flights also cancel it; external pose changes cancel stationary
settling. Oblique views below 300 km are left alone.