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
@@ -109,7 +109,7 @@ export function behaviorHash(context) {
// Update the URL hash without affecting the browser navigation stack,
// though unavoidably creating a browser history entry
window.history.replaceState(null, computedTitle(false /* includeChangeCount */), latestHash);
window.history.replaceState(null, '', latestHash);
// set the title we want displayed for the browser tab/window
updateTitle(true /* includeChangeCount */);