From e968233a52115b27d8a01fe263b6eb9136f285e2 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sun, 8 Nov 2026 15:49:41 -0800 Subject: [PATCH] fix(cockpit): the swath waits for the eased view to reach the Earth, not only the look target --- src/ui/cockpitOrbitalView.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ui/cockpitOrbitalView.js b/src/ui/cockpitOrbitalView.js index f1238a9b2..e549f406f 100644 --- a/src/ui/cockpitOrbitalView.js +++ b/src/ui/cockpitOrbitalView.js @@ -415,8 +415,16 @@ export function publishOrbitalView(info, transition = IDLE_TRANSITION) { ? lookTilt(orbitalLookReadoutParts(state.lookTarget)) : null; const swathScale = offset ? offNadirSwathScale(tilt) : 1; - // Tilted past the limb, the view's centre looks into space: no swath. - const seesEarth = !offset || offNadirCentreMeetsEarth(info.altitudeM, tilt); + // Tilted past the limb, the view's centre looks into space: no swath. The + // camera eases toward the target, so both must meet the Earth; the HUD + // republishes on its cadence, so the swath appears once the view arrives. + const seesEarth = + !offset || + (offNadirCentreMeetsEarth(info.altitudeM, tilt) && + offNadirCentreMeetsEarth(info.altitudeM, { + northDeg: state.lookView?.pitchDeg ?? 0, + eastDeg: state.lookView?.yawDeg ?? 0, + })); this.publishOrbital({ name: info.name, classLabel: info.classLabel || '',