Jump to content
Search Community

ScrollTo Plugin and autoKillThreshold

Christopher DuCharme test
Moderator Tag

Recommended Posts

I'm using GSAP 3.2.4 and scrolltoplugin 3.2.4.

 

I'm having an issue where on windows the auto scroll can not be interrupted by clicking on or tapping on the up and down arrow buttons on the scrollbar.  

 

When trying to scroll with the mouse wheel just a quick scroll of the mouse wheel does not stop the auto scroll.  You really have to spin that wheel to kill the autoscroll.

 

Back in the GSAP 2.x.x days I set the following to adjust the sensitivity of autoKill

 

ScrollToPlugin.autoKillThreshold = 1;

 

This does not appear to be working any longer.  I'm seeing the same issue on Windows.  MacOS is fine, the slightest attempt to scroll stops the auto scroll.

 

Searching the documentation, I can't find autoKillThreshold anywhere.

 

Is this still valid in GSAP 3?

 

And if not is there anyway to adjust this so that clicking on the up and down arrow buttons will trigger autoKill on Windows?

Link to comment
Share on other sites

Thanks for the tip.  I'm registering this it like this:

 

gsap.registerPlugin(ScrollToPlugin);
gsap.defaults({ autoKillThreshold: 1 });
tl = gsap.timeline();
const max = ScrollToPlugin.max(document.querySelector('#isiCopy'), 'y');

 

However, this does did not resolve the issue.  When inspecting in Chrome I see the following warning in console:

 

Invalid property autoKillThreshold set to 1 Missing plugin? gsap.registerPlugin()

 

Am I missing something still?

 

Thanks,

 

Chris

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