mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +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:
@@ -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 */);
|
||||
|
||||
Reference in New Issue
Block a user