소스 검색

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

hiden scrollbar when main content is invisible
Inuyaksa 11 년 전
부모
커밋
5e1ae411cb
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;
               });