Ver código fonte

Merge pull request #268 from williamherry/hotfix/hiden-scrollbar

hiden scrollbar when main content is invisible
Inuyaksa 11 anos atrás
pai
commit
5e1ae411cb
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      jquery.nicescroll.js

+ 2 - 0
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;
               });