Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Improve IE10 touch experience. issue #215 #683

Merged
merged 3 commits into from

2 participants

@sarvaje

I update jquery.flexslider.js.

I improve the behavior when swipe finish, and now is more smooth.

@sarvaje

related with issue #215

@mattyza
Owner
@sarvaje sarvaje referenced this pull request
Closed

IE10 Touch doesn't work #215

@sarvaje

Hi mattyza,

I have added a new commit to change setInterval(function, 0) for setImmediate(function) when swipe gesture end.
setImmediate is equivalent to setInterval(function, 0) but very much optimized.

@mattyza mattyza merged commit e167bf4 into woothemes:feature-ie-touch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 20, 2013
  1. @sarvaje
  2. @sarvaje

    Improve IE10 touch experience.

    sarvaje authored
Commits on May 21, 2013
  1. @sarvaje
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 1 deletion.
  1. +5 −1 jquery.flexslider.js
View
6 jquery.flexslider.js
@@ -499,7 +499,11 @@
scrolling = (vertical) ? (Math.abs(accDx) < Math.abs(-transX)) : (Math.abs(accDx) < Math.abs(-transY));
if(e.detail === e.MSGESTURE_FLAG_INERTIA){
- el._gesture.stop();
+ setImmediate(function (){
+ el._gesture.stop();
+ });
+
+ return;
}
if (!scrolling || Number(new Date()) - startT > 500) {
Something went wrong with that request. Please try again.