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? -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.