Skip to content

Commit

Permalink
Merge pull request woocommerce#691 from RwwL/develop
Browse files Browse the repository at this point in the history
prevent messing with slider.direction when going from last to first. Fixes woocommerce#284.
  • Loading branch information
mattyza committed Jul 2, 2013
2 parents 182cac6 + 099a1d9 commit 671f34c
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 @@ -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";
}

Expand Down

0 comments on commit 671f34c

Please sign in to comment.