mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
fix zoom resetting wrongly when switching background mid-transition
see https://github.com/openstreetmap/iD/issues/10700#issuecomment-2832010049
This commit is contained in:
@@ -163,7 +163,7 @@ export function uiIntro(context) {
|
||||
overlays.forEach(d => context.background().toggleOverlayLayer(d));
|
||||
if (history) { context.history().fromJSON(history, false); }
|
||||
context.map().centerZoom(center, zoom);
|
||||
window.location.replace(hash);
|
||||
window.history.replaceState(null, '', hash);
|
||||
context.inIntro(false);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user