Jump to content
Search Community

ScrollTo Plugin issues with ios update

tallwhitey test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

My site was experiencing issues using the scrollTo plugin with the window element on ios devices after i installed the latest update 11.1 (iphone 6s plus). 

In order to determine if it was conflicting with anything else, I instead looked for previous codepens. And confirmed that the one linked is also not working on ios devices but does on desktop and android.

Is this a known bug again? or any workarounds for this in the meantime?

See the Pen AsLfc by jonathan (@jonathan) on CodePen

Link to comment
Share on other sites

  • tallwhitey changed the title to ScrollTo Plugin issues with ios update
  • 1 month later...

I've spent hours researching this and every indication is that it's a bug in iOS Safari that only applies to iframes. Here's proof: 

 

See the Pen ?editors=0010 by GreenSock (@GreenSock) on CodePen

Notice that if you view that in an iframe on iOS, it doesn't work. It's supposed to scroll to 400px from the top after 1 second. There is no GSAP involvement whatsoever. It's pure JS. 

 

Thus far, I can't figure out any workarounds to force iOS Safari to work. I have submitted a bug report to Apple, so hopefully they'll get it resolved. Sorry for the bad news. 

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...