Possible jQuery bug with iPhone Safari

Possible jQuery bug with iPhone Safari

I have a problem with the animate function in Safari on iPhone 3.1.2.
If I click a div with id #link, that has a click handler like this:
$('#link').click(function(){
    $('html,body').animate({scrollTop:$('#bottom').offset().top},5000);
});
Instead of animating from the current scrollposition to the #bottom,
it always starts from the top.
If I want it to scroll from bottom to top, it just jumps directly to
the top without animating, with this code:
$('#link2').click(function(){
    $('html,body').animate({scrollTop:0},5000);
});
Maybe I'm doing something wrong, I'm not sure. See the testcase I've
made (view it with an iPhone):
http://wroug.com/jquery/test.html
If it's a bug, is it a known bug?
--