Explorar o código

Update jquery.nicescroll.js

Remove small delay on starting scrolling with mouse wheel
yukulele %!s(int64=11) %!d(string=hai) anos
pai
achega
15d38f0849
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      jquery.nicescroll.js

+ 3 - 3
jquery.nicescroll.js

@@ -2245,7 +2245,7 @@
       if (px) {
         if (self.scrollmom) {self.scrollmom.stop()}
         self.lastdeltax+=px;
-        self.debounced("mousewheelx",function(){var dt=self.lastdeltax;self.lastdeltax=0;if(!self.rail.drag){self.doScrollLeftBy(dt)}},120);
+        self.debounced("mousewheelx",function(){var dt=self.lastdeltax;self.lastdeltax=0;if(!self.rail.drag){self.doScrollLeftBy(dt)}},0);
       }
       if (py) {
         if (self.opt.nativeparentscrolling&&chkscroll&&!self.ispage&&!self.zoomactive) {
@@ -2257,7 +2257,7 @@
         }
         if (self.scrollmom) {self.scrollmom.stop()}
         self.lastdeltay+=py;
-        self.debounced("mousewheely",function(){var dt=self.lastdeltay;self.lastdeltay=0;if(!self.rail.drag){self.doScrollBy(dt)}},120);
+        self.debounced("mousewheely",function(){var dt=self.lastdeltay;self.lastdeltay=0;if(!self.rail.drag){self.doScrollBy(dt)}},0);
       }
       
       e.stopImmediatePropagation();
@@ -3197,4 +3197,4 @@
   }
   
 })( jQuery );
-  
+