简体   繁体   中英

jQuery scrollTop/scrollTo blur?

I'm not sure if this is how it works anyway.

I want it so when the user scrolls, after having unclicked the scroll bar and they have scrolled to their desination I can run a function or something. Not running a function 'as' they are scrolling.

Not sure if that makes sense but I appreciate any attempted answers!

Not that I know of, as it's a tricky event to trigger. In my case my scroll-wheel (which I always use to scroll web pages) is actually jerky as it stop/starts scrolling.

You could set a delay after which a function is triggered, and if the page continues to scroll then reset the delay. An example can be found in this thread .

Hope that helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM