Help me remove ScrolltoTop on page refresh/load?
Any help is greatly appreciated. Thank you.
what is the problem you are actually facing ? and problem occurs on just mobile or desktop or both ?
Well, the theme is for my SMF forum. The problem only occurs in the mobile theme as the scroll code is included in the theme's scripts. And what happens is that whenever I scroll to the bottom of the page before the site loads, I am automatically taken back to the top once the site finishes loading. And this can become quite annoying. For example, if I click on a link that would take me to the latest reply on a thread, I am taken there, but as soon as the page finishes loading I'm taken to the top.
Originally Posted by ZABI
Take a look for yourself, if you don't mind:
Scroll to the bottom before the site finishes loading.
HMmmmm, i had a quick look on your code, but did'nt find any statement causing the problem, try removing scripts one by one, maybe you find something
There is over 50 instances of the scrolltotop function in one of the scripts. I don't know what I'm doing and I do not want to break anything. If anybody is willing to fix it for me, I'll give you full FTP access, and I am willing to pay. Thank you.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)