Next.js Discord

Discord Forum

Erratic smooth scroll behaviour in next,js 14 project

Unanswered
Ocicat posted this in #help-forum
Open in Discord
Avatar
OcicatOP
Hello everyone,

This is my first Next.js project. I have a landing page with different sections that the user can scroll to. Smooth scroll is enabled, and at first, everything works fine. After a few times - and I've witnessed this behavior both on Chrome and on Edge - smooth scrolling stops working, and it jumps straight to the desired section. If I refresh the page, it goes back to normal, so I suspect, but can't be sure, it might have something to do with the cache.

Anyway, does anybody have an idea of what the problem is and how to solve it?

Thanks in advance for your time and patience.

Cheers!

3 Replies

Avatar
OcicatOP
Am I allowed to bump?
Avatar
American black bear
once a day iG
Avatar
OcicatOP
Bumping yet again!