[openstreetmap/openstreetmap-website] Change colors of changeset bboxes when they enter/exit the viewport (PR #5924)

mxdanger notifications at github.com
Fri Apr 18 21:12:58 UTC 2025


mxdanger left a comment (openstreetmap/openstreetmap-website#5924)

> If what you propose is sidebar scrolling frantically as you move your mouse over the map (and not scrolling anywhere when you're using a device without a mouse), I expect about 10x more posts starting with "This should be reverted".

Considering that your implementation doesn't really solve the issue of "it's difficult to find the corresponding changesets in the sidebar" I don't think you should be dismissive of the scroll into view idea, which would make it incredibly easy and intuitive to see what changeset you're hovering over is without having to click on it.

Give it a try and see if it works as a viable option rather than outright dismissing it, surely it shouldn't be too hard to implement `scrollIntoView()` [Mozilla docs](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) into the function that adds the selected css class, and get some feedback from the community forums. Sure it might jump around if you move your mouse all over the map but it makes intuitive sense.

Playing a how/cold game to hunt down a changeset does not make sense, however I guess on mobile it's fine.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5924#issuecomment-2816201959
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5924/c2816201959 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250418/b2b9c268/attachment.htm>


More information about the rails-dev mailing list