Skip to content

Commit

Permalink
Merge pull request #36 from Goltergaul/master
Browse files Browse the repository at this point in the history
fixed bug where animation was not executed when using swipe
  • Loading branch information
basilio committed Sep 17, 2014
2 parents ba6c885 + 32ca38b commit 2d1bde2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion responsiveCarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,11 @@
e.stopPropagation();
defaults.swipeDistance = defaults.endCoords.pageX - defaults.startCoords.pageX;
if( defaults.swipeDistance >= defaults.swipeMinDistance ){
obj.prepareExecute();
// swipeLeft
obj.previous();
} else if( defaults.swipeDistance <= - defaults.swipeMinDistance ){
obj.prepareExecute();
// swipeRight
obj.next();
}
Expand Down Expand Up @@ -405,4 +407,4 @@
});
});
};
})(jQuery);
})(jQuery);

0 comments on commit 2d1bde2

Please sign in to comment.