在某些情况下,仅在使用 scroll-behavior: smooth 且在 Firefox 中,页面不会滚动到页面顶部

作者: arturkasperek创建于 2020年6月23日更新于 2021年6月20日
标签bug

Describe the bug The bug occurs only on firefox and only when we add scroll-behavior: smooth in CSS. Also, the first-page height needs to be bigger than the height of the page which we navigate to. If we prepare that kind of setup we should notice that in the situation when the user is on the bottom of the page and tries to navigate to the second-page, scrolling to the top of the page doesn't work.

内容来源: turbolinks/turbolinks