Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change setInterval(function, 0) for setImmediate(function).

  • Loading branch information...
commit 3d9d1a46625e4a77f2fb573a14b483017b5ccb47 1 parent eb1a574
@sarvaje sarvaje authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.flexslider.js
View
6 jquery.flexslider.js
@@ -499,10 +499,10 @@
scrolling = (vertical) ? (Math.abs(accDx) < Math.abs(-transX)) : (Math.abs(accDx) < Math.abs(-transY));
if(e.detail === e.MSGESTURE_FLAG_INERTIA){
- setTimeout(function (){
+ setImmediate(function (){
el._gesture.stop();
- }, 0);
-
+ });
+
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.