diff --git a/src/index.css b/src/index.css index c1ffb61..d052de6 100644 --- a/src/index.css +++ b/src/index.css @@ -8,8 +8,12 @@ body, height: 100%; } -html, -body { +/* Only clip horizontal overflow on ; this propagates to the viewport + and keeps the window as the vertical scroller. Adding overflow-x to + (which has height:100%) would force its computed overflow-y to `auto`, + turning body into its own scroll box so window.scrollY never moves — which + breaks scroll-position features like the back-to-top button. */ +html { overflow-x: hidden; }