fix(picking): settle which layers act on a click when it resolves

The flights and military layers treat the aircraft they already track as
a passive pick, but they start tracking during the click itself. A card
handler running later in the same click then saw the plane as passive and
acted too: a quake card opened its source while the plane started
tracking, and fire, CCTV and vessel cards could do the same.

The pick registry now records the acting owners of a click's exact hit and
touch contact when the dispatcher first resolves them, and the quake,
FIRMS, CCTV, vessel and Context checks read that record for the rest of
the click. Calls without a click keep the live lookup.
This commit is contained in:
manjunath22466 committed 2026-11-17 15:51:14 +05:30
1 parent 830c980ca6
commit 54fd3d3bed
13 files changed
+239 -48

No files matched your search

+7 -3
View File
@@ -2067,9 +2067,13 @@ another layer's card or label painted over it, so a quake card or label beside
one acts alone, with a mouse or a coarse pointer. Fire and CCTV cards in turn
yield to a touch contact whose layer acts on it. The aircraft a layer already
tracks and Street Level's position marker are passive picks, since a click on
either does nothing. Fire, CCTV and vessel cards, like the quake's, act over a
passive owner's pick (a flight trail, the directions route); with no card
there, that pick still leaves a selection alone. Context
either does nothing. The pick registry records which owners act on a click's
exact hit and touch contact when the click first reads them
(`rememberClickPickActions`), and every layer asks that record for the rest of
the click, so an aircraft that starts tracking during the click does not leave
it to a later card handler as well. Fire, CCTV and vessel cards, like the
quake's, act over a passive owner's pick (a flight trail, the directions
route); with no card there, that pick still leaves a selection alone. Context
(`src/ui/entityContextBridge.js`) names what a click identifies, except under a
world-overlay card or label when the item's owner does not act on that hit
(`cardKeepsClick` in `src/data/pickedContext.js`): a passive route, or a fire