Skip to content

Commit

Permalink
prevent messing with slider.direction when going from last to first a…
Browse files Browse the repository at this point in the history
…nd var.animationLoop is true
  • Loading branch information
RwwL committed May 23, 2013
1 parent f4197a0 commit 099a1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.flexslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,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";
}

Expand Down

0 comments on commit 099a1d9

Please sign in to comment.