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...    });    

live example here

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

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -