Jump to content
Search Community

ScrollTrigger.refresh() causes ScrollSmoother to scroll

Basilico test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Hi!

I've found this and I think it's a bug.
When I use ScrollSmoother and I need to call ScrollTrigger.refresh() (due to ajax loading, dom changes, etc.) the page "sometimes" it scrolls.
If you click on the buttons in the demo, you can see it.
You need to lick more times, scroll the page and so on.
It won't happen if the page is scrolled down to the end or at the top.

See the Pen bGjQRNj by fnool (@fnool) on CodePen

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