Side navigation
#6542 closed bug (wontfix)
Opened May 07, 2010 05:56AM UTC
Closed November 21, 2010 05:02AM UTC
Last modified March 15, 2012 01:21PM UTC
iPhone Safari does not apply the scroll animation to top of the page
Reported by: | Ayame | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | |
Component: | effects | Version: | 1.4.2 |
Keywords: | animation, scroll, iphone, mobile safari | Cc: | |
Blocked by: | Blocking: |
Description
When using the code to navigate slowly back to the top of the page, Mobile Safari refuses to apply the animation and simply jumps back to the top of the page. When testing this in other browsers (even Safari desktop) it works fine.
Code used:
function scrollToTop() {
$('body').animate({scrollTop: 0}, "slow");
}
$('.toplink').click(scrollToTop);
Attachments (0)
Change History (2)
Changed November 12, 2010 02:40AM UTC by comment:1
milestone: | 1.4.3 |
---|
Changed November 21, 2010 05:02AM UTC by comment:2
priority: | → undecided |
---|---|
resolution: | → wontfix |
status: | new → closed |
Thanks for the report, but this is not a jQuery bug. Mobile Safari does not support scrollTop
, and there is no known workaround. There some additional discussion at commit [dab1d7467789c7092366f8231dceee0dc20d2553].
Resetting milestone to future.