fix zoom resetting wrongly when switching background mid-transition

see https://github.com/openstreetmap/iD/issues/10700#issuecomment-2832010049
This commit is contained in:
Martin Raifer
2025-04-26 20:47:50 +02:00
parent 8c421b615d
commit fa91fe7c0d
12 changed files with 57 additions and 76 deletions
+1 -1
View File
@@ -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);
});