Jump to content
Search Community

scroll to section jumping on MacOS

FLYPILOT test
Moderator Tag

Recommended Posts

Hello guys.

 

I've this code already working on my project, when I want to scroll the page only section by section. However this have a "bug on MacOS" that depending on how "strong" the scroll movement is done, both touch pad and magic mouse, more the one section is scrolled in total. I've attached a pen with my code and a video showing the jumping.

Is this a known issue? is there any solution for MacOS? In windows the animation is fine.

See the Pen dyQaZxZ by jo-o-luiz-de-figueiredo-magalh-es (@jo-o-luiz-de-figueiredo-magalh-es) on CodePen

Link to comment
Share on other sites

Hi @FLYPILOT. Thanks for being a Club GreenSock member!

 

I think that's just because those events keep being fired by Mac devices for a while. For example, if you flick hard on a magic mouse, you'll see that wheel events keep getting dispatched for a while. Same for touch pad interactions. So you need to code accordingly - it's not really a GSAP/ScrollTrigger issue. I'm not aware of a way to force Mac devices to immediately STOP dispatching those.

  • Like 1
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...