KamoCRM

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

Fixkamo-marketing
Ya
31 Machi 2026, 22:24 UTC
Mwandishi
Kamo
Ahadi ya
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.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei