开发者

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 s开发者_JAVA技巧ense 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜