Hi! I am using this code:
$('a.goToTop').click(function() { $('html').animate({scrollTop : 0},'slow'); }); And it works like it should. Problem is that sometimes it just bugs out for short period of time, like when you click anchor and it scroll's to top, if you then try to use scroll on mouse to scroll down it just keep returning you to top... :( And after that short period of time it stop's doing that. Any idea how to fix this? Something like when it reach top to stop working or something like that.