Skip to content Skip to sidebar Skip to footer

Scrolltop Not Working In Chrome/safari

I have a form within a loop on our site and when someone submits the form then a query string is added to the url something like '?updated=111'. Then my JQuery script checks the u

Solution 1:

Try putting the ".animate()" method inside a timeout of 2seconds. Does the problem go away? If it does, then its timing issue. Most likely thats because the browser is not ready to scroll to the location that you ask it to scroll to.

In this situation, you'd rather go with a timeout of 0 than a 2 sec. A 0 timeout just schedules the scroll for next cycle whenever the browser is free.

HTH!

Post a Comment for "Scrolltop Not Working In Chrome/safari"