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 -3
View File
@@ -225,9 +225,7 @@ export function rendererBackground(context) {
delete hash.offset;
}
if (!window.mocha) {
window.location.replace('#' + utilQsString(hash, true));
}
window.history.replaceState(null, '', '#' + utilQsString(hash, true));
let imageryUsed = [];
let photoOverlaysUsed = [];