For some reason, on two different websites made by me, and on NO other sites, Chrome will randomly scroll down by a variable amount whenever a new page is loaded, and sometimes even at other times (in particular when an object is being drag-dropped).
There is absolutely no reference to any scrollTop anywhere in the code for either site, and both sites have code that is completely written from scratch (so there is no common code I might have copy-pasted). Also, there is no # fragment in the URLs (whenever there are it scrolls to the correct position).
Has anyone else ever heard of Chrome just scrolling without cause? Anything that might be able to fix without reassigning scrollTop every time an action is taken?
Turns out the issue was caused by a bad Chrome “auto-refresh plus” addon that was actually adding an ad banner to the end of the page and attempting to scroll to it on pageload – it failed to scroll to the bottom because of images shifting the page height down.
Uninstalled the addon, and the problem hasn’t occurred since.
Thanks to those who tried to help!