Why is the website auto-scrolling in the editor mode?

Hi, I have an issue and can’t figure out how to solve it. My website is auto-scrolling to the top of the page every time I scroll to the bottom but only when I’m in the editor mode. How can I stop that?