JQUERY, scrollTo, after scrolling down, the page won't let me scroll up for a second... Y?

Posted by nobosh on Stack Overflow See other posts from Stack Overflow or by nobosh
Published on 2010-05-31T02:55:39Z Indexed on 2010/05/31 3:02 UTC
Read the original article Hit count: 263

Filed under:
|
|
|

I'm using the following JQUERY to attach an even to a link in the header, which essentially scrolls to the bottom of the page:

$('#comment-count-btn').click(function(){
    $('html,body').scrollTo('#comment-wrapper', 500);
});

Problem is, that it scrolls all the way to the bottom of the page (which is correct), but then when I try to scroll up a tad, the scroll bar jumps, as if it's locked for a little bit.

Any ideas?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about animation