KamoCRM

Remove global scroll-behavior:smooth that prevented pages from starting at top

Fixkamo-marketing
Shipped
March 31, 2026 at 10:24 PM UTC
Author
Kamo
Commit
16a932a

The html element had scroll-behavior:smooth globally, which caused Next.js client-side navigation to slowly smooth-scroll from the previous scroll position instead of starting at the top of the new page. Removed the global rule — all in-page smooth scrolling (JumpToBar, BackToTop, ScrollSpyNav, etc.) already uses window.scrollTo with behavior:'smooth' directly, so those are unaffected.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing