mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 18:22:25 +00:00
Recent Imagery: keep a picked day when the automatic preview probes empty
A card click on an unprobed day follows that day while the automatic preview stays on the map. If the automatic day then probed empty, the hand-over to the next ranked day overwrote that follow, so neither the picked day nor the successor draped when their probes came back present. The hand-over now leaves the slot to a day the user picked that is still being probed or waiting out the arrow-key debounce. Also covers the off-screen successor with empty days shown: once the visible days probe empty, the successor's probe is queued (the re-request that came with the merge from main) and the day drapes when present.
This commit is contained in:
1 parent
ea8ad63632
commit
35f69e84df
4 files changed
+56
-3
No files matched your search
@@ -320,7 +320,9 @@ export function createRecentImageryLayer({
|
||||
_previewKey = null;
|
||||
_auto = null;
|
||||
changed = true;
|
||||
if (wasAuto) autoPreview(preview.key);
|
||||
// A day the user picked meanwhile, still being probed or debounced,
|
||||
// takes the slot instead of the next ranked day.
|
||||
if (wasAuto && !_followKey && !_pending) autoPreview(preview.key);
|
||||
}
|
||||
// A followed day that turns out empty is dropped; an automatic one hands
|
||||
// over to the next ranked day.
|
||||
|
||||
Reference in new issue
Block a user