فهرست منبع

Merge pull request #725 from PatrickWynne/patch-1

stops vertical bar from flashing on load
Inuyaksa 7 سال پیش
والد
کامیت
0e9db047f1
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      dist/jquery.nicescroll.js

+ 2 - 2
dist/jquery.nicescroll.js

@@ -2303,7 +2303,7 @@
       if (!self.hasborderbox) self.scrollvaluemax -= self.cursor[0].offsetHeight - self.cursor[0].clientHeight;
 
       if (self.railh) {
-        self.railh.width = (self.page.maxh > 0) ? (self.view.w - self.rail.width) : self.view.w;
+        self.railh.width = (self.page.maxh > 0) ? (self.rail.width) : self.view.w;
         self.scrollvaluemaxw = self.railh.width - self.cursorwidth - (opt.railpadding.left + opt.railpadding.right);
       }
 
@@ -3717,4 +3717,4 @@
     $.nicescroll.options = _globaloptions;
   }
 
-}));
+}));