Bug Tracker

Opened 10 years ago

Closed 9 years ago

Last modified 8 years ago

#6542 closed bug (wontfix)

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);

Change History (2)

comment:1 Changed 9 years ago by snover

Milestone: 1.4.3

Resetting milestone to future.

comment:2 Changed 9 years ago by snover

Priority: undecided
Resolution: wontfix
Status: newclosed

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].

Note: See TracTickets for help on using tickets.