Jump to content
Search Community

ScrollSmoother - getVelocity() bug(?)

Nick.Ls
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Posted

Hello everyone,

 

I have downloaded the latest version of ScrollSmoother along with GSAP 3.11.

 

In my effort to get velocity on smoother update as used in documentation and as I have used before, it now comes

with a console error of function not found. I used a previous version of ScrollSmoother and it works fine. If you

feel to look into it be my guest ;)

 

Ty all!

Posted

Hi Jack!

 

I am sending you over a codepen, same setup but smoother 3.11.0 instead of the 10.4 you are using... check the console for the error.

 

Same thing will not occur if you replace the smoother version 10.4 on my codepen.

 

Let me know if I can be more of assistance!

 

See the Pen xxWvLKW by Nick_Ls (@Nick_Ls) on CodePen.

Posted

Yes, sorry about the confusion there - a regression in 3.11.0 caused that object passed as "self" in that onUpdate function to refer to the Tween rather than the ScrollSmoother but that is resolved in the patch we're prepping to release. It's already in the beta online, https://assets.codepen.io/16327/ScrollSmoother.min.js

 

But I showed you a workaround in my demo above. Just use the variable instead. 

  • Like 1
Posted

Hi Jack,

 

I have used your solution already, thanks for that!

 

And thanks for the info provided.

 

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