hapi.dev
hapi.dev copied to clipboard
Website scrolls on its own
Support plan
- is this issue currently blocking your project?: no
- is this issue affecting a production system?: no
Context
- OS: Windows 10 Pro (Build 19041)
- Browser: Chrome 89.0.4389.82 (64-bit)
What are you trying to achieve or the steps to reproduce?
I visit the hapi.dev API reference (https://hapi.dev/api/?v=20.1.0)
What was the result you got?
The site scrolls upward on its own.
What result did you expect?
The site not to scroll on its own ¯_(ツ)_/¯. Right now, it makes me quite anxious—like I'm in a race to finish reading what I'm reading before it scrolls out of view.😅
I'm not sure exactly what conditions trigger the auto-scroll. An easy way is to Ctrl-F a term somewhere further in the docs, then scroll a bit (like in the clip below). Some other times, it happens when I nav between sections from the menu.
https://user-images.githubusercontent.com/14361073/110753460-e5d20500-8246-11eb-8940-62907d90d8bd.mp4
Additional info: when this happens, my CPU fans get way louder and CPU usage goes up.

I regularly experience this as well when on Safari. I can make it stop if I scroll the left navigation section a bit.
This appears to be a problem with some scroll focus logic, where it thinks that the view is wrong, adjusts it, and then still thinks it is wrong, causing a loop.
This is not a new issue, and has been there always.