mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 17:52:21 +00:00
fix(earthquakes): keep quake discs out of pick ownership
Registering quake discs as pick owners changed how other layers read a click anywhere over a quake: sibling layers yield to owned picks before their own card hit-tests and treat an owned pick as not empty space. A fire card drawn over a large quake could not be clicked and the quake beneath was selected, radio near-miss taps found nothing, and a followed aircraft kept its camera while the quake took the shared selection. Leave the discs unregistered, as drone airspace and fire perimeters do, so a disc reads as empty space to other layers. The quake handler finds its own discs by draw set, reads the click's resolved hit, and yields when another layer's card or label is the topmost overlay entry. Another layer's object under the quake card or a label takes the click before either is read, so a click on the card over an aircraft does not also open the USGS page. A feed refresh inside the contour window no longer asks for a frame while the disc is off screen.
This commit is contained in:
1 parent
9f698779be
commit
b2bc15e763
4 files changed
+144
-25
No files matched your search
@@ -361,7 +361,10 @@ export function createEarthquakeRipples({
|
||||
});
|
||||
lane.setActive(true);
|
||||
lane.requestPaint();
|
||||
if (running() && frameHandle === null) frameHandle = requestFrame(tick);
|
||||
// A refresh while the disc is out of sight asks for no frame; a paint
|
||||
// that finds it on screen again starts them (a restart sets onScreen).
|
||||
if (running() && onScreen && frameHandle === null)
|
||||
frameHandle = requestFrame(tick);
|
||||
}
|
||||
|
||||
function hide() {
|
||||
|
||||
Reference in new issue
Block a user