I\'m working on a page with a fixed menu that picks up after the user has scrolled a certain distance from the top, and as they scroll down the page, different links from th
In addition to the other issues, $('body').scrollTop()
will always return 0 in Firefox. When setHash()
runs $('html,body').scrollTop(scrollmem);}
, it will jump to the top of the screen, which looks exactly like being stuck at the top of the screen when the user first loads the page. $(window).scrollTop()
, in conjunction with throttling, will solve this problem.