Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #691 from RwwL/develop

prevent messing with slider.direction when going from last to first. Fixes #284.
  • Loading branch information...
commit 671f34ca99cce00e5b4144b8374a585abeebf573 2 parents 182cac6 + 099a1d9
@mattyza mattyza authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  jquery.flexslider.js
View
2  jquery.flexslider.js
@@ -630,7 +630,7 @@
// public methods
slider.flexAnimate = function(target, pause, override, withSync, fromNav) {
- if (target !== slider.currentSlide) {
+ if (!slider.vars.animationLoop && target !== slider.currentSlide) {
slider.direction = (target > slider.currentSlide) ? "next" : "prev";
}
Please sign in to comment.
Something went wrong with that request. Please try again.