Permalink
Browse files

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

  • Loading branch information...
1 parent eb1a574 commit 3d9d1a46625e4a77f2fb573a14b483017b5ccb47 @sarvaje sarvaje committed May 21, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.flexslider.js
View
@@ -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;
}

0 comments on commit 3d9d1a4

Please sign in to comment.