鼠标滚轮事件(mousewheel、DOMMouseScroll)

复制代码
 1 (function() {
 2     function handleMouseWheel(event) {
 3         event = EventUtil.getEvent(event);
 4         var delta = EventUtil.getWheelDelta(event);
 5         console.log(delta);
 6     }
 7 
 8     EventUtil.addHandler(document, "mousewheel", handleMouseWheel);
 9     EventUtil.addHandler(document, "DOMMouseScroll", handleMouseWheel);
10 })();
复制代码
posted @   小猩猩君  阅读(1125)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示