0

There's a billion scroll to's in this file. I'm trying to stop it from forcing you to the top every time the page changes. I even disabled the scroll to after the comment that says "Scroll to top, hide addr bar" but it hasn't stopped it. It's annoying to scroll down while the page is loading and then be forced back to the top when it completes loading. Anyone know what in there needs to be commented out?

GregInWI2
  • 904
  • 1
  • 17
  • 26
  • Please post the code that calls your script and your script. – Dylan Hayes Nov 16 '11 at 06:30
  • It's this: http://code.jquery.com/mobile/1.0rc3/jquery.mobile-1.0rc3.min.js. I comment out the contents within the slientScroll function and that fixed it. Not sure yet if it'll cause any problems with my site though. – GregInWI2 Nov 16 '11 at 06:41
  • try these: http://stackoverflow.com/questions/1061580/jquery-click-on-anchor-element-forces-scroll-to-top http://stackoverflow.com/questions/5449833/stop-scrolling-to-top-after-ajax-request – dotchuZ Nov 16 '11 at 16:50
  • Those links aren't related. The problem is you tap a link, it puts you at the top (expected), goes to the new page, and while it's loading the new page if you scroll down it to start reading you lose your place because as soon as it finishes loading the entire page it forces you back to the top. Very annoying. I fixed it before and have to do it again with the latest version. – GregInWI2 Apr 20 '12 at 04:15

0 Answers0