Jump to content
Search Community

ScrollSmoother - getVelocity() bug(?)

Nick.Ls test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

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!

Link to comment
Share on other sites

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