mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 01:32:19 +00:00
fix(earthquakes, cyclones): an item that goes takes its double-click follow with it
Removing a followed entity ended the default renderer's follow. A disc gone from the feed, or a storm point gone from the advisory (or a cleared one), now ends it too.
This commit is contained in:
1 parent
def2e1ecca
commit
fbc40ef3b6
6 files changed
+46
-2
No files matched your search
@@ -480,7 +480,11 @@ test('a double-click follows a storm’s points and zooms to its tracks and cone
|
||||
}),
|
||||
null,
|
||||
);
|
||||
const key = `${h.sets.points.spec.id}:cyclone:ep152026:center`;
|
||||
assert.equal(h.rendering.drawsFollowKey(key), true);
|
||||
assert.equal(h.rendering.drawsFollowKey(`other:points:x`), false);
|
||||
h.rendering.clear();
|
||||
assert.equal(h.rendering.drawsFollowKey(key), false, 'cleared: not drawn');
|
||||
assert.equal(
|
||||
h.rendering.followTargetFor(h.hit('points', 'cyclone:ep152026:center')),
|
||||
null,
|
||||
|
||||
Reference in new issue
Block a user