iscroll.js 如何监听滚动事件?
Reply:
var myScroll;
function loaded () {
myScroll = new IScroll('#wrapper', {
scrollbars: true,
mouseWheel: true,
interactiveScrollbars: true,
shrinkScrollbars: 'scale',
fadeScrollbars: true,
onScrollMove: function() {
console.log('onScrollMove');
}
});
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
杨魅力
相关分类