<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3603013393" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/6509" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/6509/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/6509">#6509</a> .</p>
<h3 dir="auto">Description</h3>
<p dir="auto">These lines were causing the map to zoom out whenever the changeset history panel was closed. After reviewing their purpose, it seems they are not necessary: once we exit the history view, there’s no need to adjust the map to fit the bounds of the history changesets. Removing them fixes the zooming issue and does not affect any other map behavior.</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto">old version:</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/16283fd0-7abb-4b93-ae29-4b356b148b23">https://github.com/user-attachments/assets/16283fd0-7abb-4b93-ae29-4b356b148b23</a></p>
<p dir="auto">new version:</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/58acd6bf-7c2d-42bc-bba1-c860a1e38bfe">https://github.com/user-attachments/assets/58acd6bf-7c2d-42bc-bba1-c860a1e38bfe</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6514'>https://github.com/openstreetmap/openstreetmap-website/pull/6514</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6514/commits/07ef4aed634f97eba6c8366e442b395c436b27bb" class="commit-link">07ef4ae</a>  No need to fixBounds when page is not /history</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6514/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6514/files#diff-25cab16df4a58e0c8e53d0a0e70d9bbf28ef3beb9e6bf1208234fdeed7515392">app/assets/javascripts/index/history.js</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6514.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6514.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6514.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6514.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6514">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLW3AVF33EFKS2PJL334DD5NAVCNFSM6AAAAACLV4O2VKVHI2DSMVQWIX3LMV43ASLTON2WKOZTGYYDSMBQGY3TCNA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLN3CSE2FXYVCPFUOTT34DD5NA5CNFSM6AAAAACLV4O2VKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHNOHISPI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6514</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6514",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6514",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>