mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-03 13:38:04 +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:
@@ -524,15 +524,13 @@ export default {
|
||||
|
||||
// Update the URL with current image id
|
||||
updateUrlImage: function(imageId) {
|
||||
if (!window.mocha) {
|
||||
const hash = utilStringQs(window.location.hash);
|
||||
if (imageId) {
|
||||
hash.photo = 'mapillary/' + imageId;
|
||||
} else {
|
||||
delete hash.photo;
|
||||
}
|
||||
window.location.replace('#' + utilQsString(hash, true));
|
||||
const hash = utilStringQs(window.location.hash);
|
||||
if (imageId) {
|
||||
hash.photo = 'mapillary/' + imageId;
|
||||
} else {
|
||||
delete hash.photo;
|
||||
}
|
||||
window.history.replaceState(null, '', '#' + utilQsString(hash, true));
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user