Zoom in further, and pick short links between close cities (#126)
Porto Alegre and Florianopolis are 65 px apart at the old maximum zoom, and each city grabbed taps within 38 px, so the link between them could not be selected at all. The maximum zoom goes from 6x to 16x (city icons stop growing at 1.35x, so dense regions spread out), and a city now wins a tap outright only on its icon; in the rest of its tap circle a link right under the pointer wins. The hover cursor follows the same rule. Dragging from a POP still draws a new link.
This commit is contained in:
parent
729d4d303d
commit
673b5159b0
4 changed files with 30 additions and 4 deletions
|
|
@ -132,7 +132,8 @@ test('half speed and deeper zoom', () => {
|
|||
ev("ACT.speed({v:7})");
|
||||
assert.equal(ev("UI.speed"), 0.5, 'bogus speeds are ignored');
|
||||
ev("cam.z=1;for(let i=0;i<40;i++)zoomAt(100,100,1.2)");
|
||||
assert.equal(ev("cam.z"), 6);
|
||||
assert.equal(ev("cam.z"), ev("ZMAX"), 'zooming in stops at the maximum');
|
||||
assert.ok(ev("ZMAX") >= 16, 'deep enough for dense regions (#126)');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue