Open flashtopia opened 12 years ago
Wow, it's been almost 2 years since you asked about this and still no response. I've seen that UIkit (http://getuikit.com/docs/scrollspy.html) has this delay option, but haven't tried it yet. I also wouldn't want the whole UIkit just for the scrollspy delay. So... I'm also stuck on this...
I am using your great spy component with ScrollTo which scrolls to a certain portion of the page when a url with a #hash is clicked.
It works awesome! except for one little issue.
I want to be able to fire events about 500 seconds after scrolling has stopped. I dont know if settimout is appropriate for this since it is running on .each .
The reason for this is I want to change the classes on nav links based on where the scrolling is once it has completed. Otherwise the nav links go nuts during a scroll from page start to page end. Everything in between gets the onEnter onleave event and the navs light up one after the other. Also want to use this on my onepage site to TrackPageview on google analytics, and dont want extra pageviews popping in as they are scrolled trhoug.
Can you advise me on the proper way to wait until scrolling has completed to fire an event?