阅读背景:

如何检测onscroll事件是否以编程方式生成?

来源:互联网 

I'd like to have a handler fire whenever the user scrolls, but I don't want it to happen when the browser scrolls on behalf of the user. For example, the document below scrolls itself as part of onload. This fires my onscroll handler, but I don't want it to. Even if I remove the onload, there's still a problem: if the user scrolls and then reloads the page, the handler fires upon reload. Again, I don't want that.I'd like to have a handler fire whenever the us




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: