mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user