Skip to content

Commit

Permalink
Change setInterval(function, 0) for setImmediate(function).
Browse files Browse the repository at this point in the history
  • Loading branch information
jdgarcia committed May 21, 2013
1 parent eb1a574 commit 3d9d1a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jquery.flexslider.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3d9d1a4

Please sign in to comment.