fix(wildlife): a tap selects only a sighting exactly under it again

A click read the scene's exact pick at the tap. Through the input
dispatcher it read the click's id, which on a touch screen comes from the
wider contact search: a tap near a sighting selected it, and one near
another layer's contact kept the selection. It reads the exact top hit
again, as the shipwrecks and Local ADS-B layers do.
This commit is contained in:
Sameh Khamis committed 2026-11-14 01:51:24 -08:00
1 parent cbc0c114eb
commit 4f24b9a062
3 files changed
+28 -5

No files matched your search

@@ -204,7 +204,9 @@ function harness(
clicks.callback = (click) =>
fn({
screenPosition: click.position,
id: picked?.id ?? picked?.primitive?.id ?? null,
topHit: picked
? { set: 'wildlife', id: picked.id ?? picked.primitive?.id }
: null,
});
return () => {
clicks.destroyed = true;