My new project is a single page portfolio website. I use the jQuery scrollTo plugin to scroll my page on navigation link click. The problem is that if the user starts trying to scroll the page while the plugin is scrolling the page, they start to fight with each other.
I'm looking for a way to either stop automatic page scrolling by scrollTo when the user starts scrolling the page or to disable user scrolling until the page finishes scrolling itself. I've found code that lets me detect scrolling and stop scrolling, but it includes scrolling by the plugin in a scroll() event. You can see that code here:
var slow = 4500;
var normal = 2500;
var fast = 1700;
I'm mostly looking for a way to distinguish user scrolling from plugin scrolling so that I can make one of the two stop when the other starts.
You can see what's going on here:
If anyone knows how to do what I'm trying to do, please let me know. Thanks in advance!