jquery - Mousewheel event doesn't work in Firefox -
mousewheel event not triggering in firefox, using jquery.mousewheel plugin, without it working fine in browsers except firefox. here code:
$('body').on('mousewheel', function(e){ console.log(123); //some code... });
any suggestions? many answers...
jquery.mousewheel not loading properly.
you can verify going website, opening developer console, , typing
$.fn.mousewheel
or $.fn.unmousewheel
, hitting ctrl+enter.
both return undefined
.
it's possible may work if capture mousewheel
dependency parameter anonymous module, if i'm being totally honest, every time have deal jquery plugins , requirejs, give on scoped modules , let jquery it's nasty thing in global scope (which why use jquery less , less these days).
as why worked in other browsers, believe webkit engine have added support mousewheel
. because jquery.mousewheel plugin not loading, other browsers deferring native implementations.
Comments
Post a Comment