Преглед изворни кода

Update jquery.nicescroll.js

Remove small delay on starting scrolling with mouse wheel
yukulele пре 11 година
родитељ
комит
15d38f0849
1 измењених фајлова са 3 додато и 3 уклоњено
  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 );
-  
+