Keep the camera still in the cockpit when a mission's dot is clicked or its orbit arrives

The cockpit holds the camera: the mission dot, like its label, selects the
mission there without flying to it, and a mission picked in the cockpit is
not flown to when the active satellite lookup returns.

Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
Sameh KhamisandManjunath Paparaju committed 2026-11-18 20:37:53 -08:00
1 parent 813c6b23ea
commit 6c960eb3c9
6 files changed
+46 -20

No files matched your search

+7
View File
@@ -103,3 +103,10 @@ export const TRAJECTORY_STAGE_COLORS = [
'#ffd166',
'#60a5fa',
];
/** Whether the cockpit view is on; it holds the camera while it is. */
export function cockpitActive() {
return Boolean(
globalThis.document?.body?.classList?.contains?.('cockpit-mode'),
);
}