我想抓住Mac浏览器的Mac机iframe中的mousewheel事件,但事件并没有被抓住。它在Windows(Chrome和Safari)和Mac Chrome浏览器。它在控制台上显示任何错误。mousewheel事件不适用于Mac机Safari浏览器
我也试过其他事件,但找不到合适的解决方案。
我用下面的代码
$('#divelingOverlay_wrapper').on('mousewheel scroll wheel DOMMouseScroll touchmove MozMousePixelScroll', function (ev) {
ev.preventDefault();
});
请建议。
'mousewheel'不是标准事件:https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel – Jai 2014-12-09 12:49:52
您可以使用mousewheel插件:https://github.com/jquery/ jquery-mousewheel – 2014-12-09 13:00:20
Jai,这就是为什么我们也使用了其他events.But它们也不起作用 – 2014-12-09 13:04:43