Another issue with Chrome! Random scrolling?

For some reason, on two different websites made by me, as well as on other sites, Chrome will randomly scroll using a variable amount whenever a new page loads, and sometimes even at a different time (in particular, when object drag and drop).

There is absolutely no link to any scrollTop anywhere in the code for any site, and on both sites there is code that is completely written from scratch (so there is no generic code that I could copy). In addition, there is no # fragment in the URLs (whenever it scrolls to the correct position).

Has anyone else heard that Chrome just scrolls for no reason? Anything that can be fixed without reassigning scrollTop every time the action is performed?

+4
source share
1 answer

It turns out that the problem was caused by the poor addition of "auto-update plus" Chrome, which actually added an ad banner to the end of the page and tried to scroll it to pageload - it was not able to scroll down because the images shift the page height down.

The addon has been removed and the problem has not occurred since.

Thanks to those who tried to help!

+4
source

Source: https://habr.com/ru/post/1398337/


All Articles