Selaa lähdekoodia

Look for "onwheel" in the document and also check the documentMode for
IE compatability

Brandon Aaron 11 vuotta sitten
vanhempi
commit
aedf82e5e8
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      jquery.nicescroll.js

+ 2 - 2
jquery.nicescroll.js

@@ -2034,7 +2034,7 @@
       var el = ("jquery" in dom) ? dom[0] : dom;
       
       if (name=='mousewheel') {
-        if ("onwheel" in self.win) {            
+        if ("onwheel' in document || document.documentMode >= 9) {            
           self._bind(el,"wheel",fn,bubble||false);
         } else {            
           var wname = (typeof document.onmousewheel != "undefined") ? "mousewheel" : "DOMMouseScroll";  // older IE/Firefox
@@ -3250,4 +3250,4 @@
   }
   
 }));
-  
+