<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">
  <blockquote>
<p dir="auto">Use scrollIntoView() to bring the selected list-group-item into view in the sidebar so you can always see what you're hovering over in the map.</p>
</blockquote>
<p dir="auto">This is a tricky function. I use it in my script for osm.org to navigate between objects in a changesets, and sometimes it works unpredictably and moves the scroll to the wrong place (or rather, sometimes it doesn't move the scroll at all). Perhaps this is a problem with the current layout, but in any case, I would be careful in expectations of it.</p>
<blockquote>
<p dir="auto">Sure it might jump around if you move your mouse all over the map but it makes intuitive sense.</p>
</blockquote>
<p dir="auto">What is the point of doing this, then? Imagine, you are scrolling through changesets, and finally an interesting cluster of edits appears in the area you need, you move the cursor to them and the sidebar starts jumping. Then it turns out that you need to load more changesets, and you move the cursor to the sidebar again, enjoying its jumping.</p>
<p dir="auto">Also, this is not the only solution. You can scroll with a delay. You can scroll by alt + click by bbox. You can display by hover title with meta information. You can show a popup. PR welcome :)</p>
<blockquote>
<p dir="auto">This should be reverted.</p>
</blockquote>
<p dir="auto">Now, viewing changesets on osm.org is a clean slate, so almost any change doesn't make worse.</p><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/5924#issuecomment-2816719146">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO7FKY7CFSGX22KIZ322JJFNAVCNFSM6AAAAAB27N2S6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMJWG4YTSMJUGY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLL5RJDK6S7FYBQARND22JJFNA5CNFSM6AAAAAB27N2S6WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVH4O4SU.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/5924/c2816719146</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
</span>


<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/25708359?s=20&v=4" /><strong>deevroman</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5924#issuecomment-2816719146">(openstreetmap/openstreetmap-website#5924)</a></div>
<blockquote>
<p dir="auto">Use scrollIntoView() to bring the selected list-group-item into view in the sidebar so you can always see what you're hovering over in the map.</p>
</blockquote>
<p dir="auto">This is a tricky function. I use it in my script for osm.org to navigate between objects in a changesets, and sometimes it works unpredictably and moves the scroll to the wrong place (or rather, sometimes it doesn't move the scroll at all). Perhaps this is a problem with the current layout, but in any case, I would be careful in expectations of it.</p>
<blockquote>
<p dir="auto">Sure it might jump around if you move your mouse all over the map but it makes intuitive sense.</p>
</blockquote>
<p dir="auto">What is the point of doing this, then? Imagine, you are scrolling through changesets, and finally an interesting cluster of edits appears in the area you need, you move the cursor to them and the sidebar starts jumping. Then it turns out that you need to load more changesets, and you move the cursor to the sidebar again, enjoying its jumping.</p>
<p dir="auto">Also, this is not the only solution. You can scroll with a delay. You can scroll by alt + click by bbox. You can display by hover title with meta information. You can show a popup. PR welcome :)</p>
<blockquote>
<p dir="auto">This should be reverted.</p>
</blockquote>
<p dir="auto">Now, viewing changesets on osm.org is a clean slate, so almost any change doesn't make worse.</p>

<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/5924#issuecomment-2816719146">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO7FKY7CFSGX22KIZ322JJFNAVCNFSM6AAAAAB27N2S6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMJWG4YTSMJUGY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLL5RJDK6S7FYBQARND22JJFNA5CNFSM6AAAAAB27N2S6WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVH4O4SU.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/5924/c2816719146</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/5924#issuecomment-2816719146",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5924#issuecomment-2816719146",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>