Jump to content

remove MouseWheel in Mozilla Firefox


Kolinski

Recommended Posts

Browser detection can be tricky/unreliable and is probably not recommended.  That being said, you could start with something like the code below.  I'm not convinced it's perfect but it worked in a quick test of Chrome and FireFox: 

if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {                               
    document.addEventListener('DOMMouseScroll', function(e){
        e.stopPropagation();
        e.preventDefault();
        e.cancelBubble = true;
    }, false);
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.