Pārlūkot izejas kodu

hiden scrollbar when main content is invisible

William Herry 11 gadi atpakaļ
vecāks
revīzija
38f73ce188
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      jquery.nicescroll.js

+ 3 - 1
jquery.nicescroll.js

@@ -1415,6 +1415,7 @@
             self.railh&&self.railh.css({"cursor":"default"});          
           
             self.jqbind(self.rail,"mouseenter",function() {
+              if (!self.win.is(":visible")) return false
               if (self.canshowonmouseevent) self.showCursor();
               self.rail.active = true;
             });
@@ -1432,6 +1433,7 @@
 
             if (self.railh) {
               self.jqbind(self.railh,"mouseenter",function() {
+                if (!self.win.is(":visible")) return false
                 if (self.canshowonmouseevent) self.showCursor();
                 self.rail.active = true;
               });          
@@ -3197,4 +3199,4 @@
   }
   
 })( jQuery );
-  
+