Ad

Chrome Keeps Auto Scrolling My Mvc View To Top

I am facing an issue in my MVC project that when I run it in Chrome, Chrome keeps auto scrolling it to top. I need to disable it or handle it to ot scroll. The chrome version I am using is 70.0.3538.110.

Here is the piece of code I am using to forcefully scroll to bottom:

domElement.scrollTop = domElement.scrollHeight;
Ad

Answer

Do you have any web worker running which tampers scrolling? If yes then try disabling them.

Thanks

Ad
source: stackoverflow.com
Ad