简体   繁体   English

在JavaScript中,iPhone浏览器是否有启动滚动事件?

[英]In JavaScript, is there a start scroll event for the iPhone browser?

I would like to detect when a user starts to scroll a webpage in the iPhone web browser. 我想检测用户何时开始在iPhone Web浏览器中滚动网页。 Is this possible? 这可能吗?

Use an onscroll event as usual and delete it when the user scrolled for the first time. 照常使用onscroll事件,并在用户首次滚动时将其删除。

window.onscroll = function() {
    alert("I saw that!");
    window.onscroll = null;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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