mirror of
https://github.com/discourse/discourse.git
synced 2025-04-13 22:35:05 +08:00

topic-navigation and topic-map appear in the DOM before the post stream, and are then rearranged with CSS grid. That means that, if they are entirely within the viewport, and does not have a fixed/sticky position, then they will be chosen as the browser's scroll anchor point. We never want these elements to be used as the anchor, so we can set `overflow-anchor: none`. https://meta.discourse.org/t/344386/16