如何向 iScroll4 添加 onScroll 事件?
iScroll4 尚不支持 onScroll
事件。
是否有已知的方法来扩展 iScroll 以支持 onScroll
事件?
The onScroll
event is not yet supported by the iScroll4.
Is there a known way to extend the iScroll to support an onScroll
event?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个简单示例,说明如何按照之前对此问题的答复的建议来注册回调函数:https://stackoverflow.com/a /8489043
This is a quick example of how to register your callback functions following the advice of the earlier response to this question: https://stackoverflow.com/a/8489043
看看这里的源代码: https://github .com/cubiq/iscroll/blob/v4/src/iscroll.js#L127-L139
第 127-139 行,您会发现可以指定一个
onScrollStart
函数。也许您可以使用
onScrollStart
、onScrollMove
和onScrollEnd
回调来调整您的方式have a look at the source here: https://github.com/cubiq/iscroll/blob/v4/src/iscroll.js#L127-L139
on lines 127-139 you'll see that you can specify a
onScrollStart
function.Maybe you can tweak your way arround with the
onScrollStart
,onScrollMove
and theonScrollEnd
callbacks