From 099a1d9361ad2ea486ba23c7fdb7689c4340fbad Mon Sep 17 00:00:00 2001 From: Rob Lifford Date: Thu, 23 May 2013 11:49:15 -0500 Subject: [PATCH] prevent messing with slider.direction when going from last to first and var.animationLoop is true --- jquery.flexslider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flexslider.js b/jquery.flexslider.js index 44f82a1f..dc94bb42 100644 --- a/jquery.flexslider.js +++ b/jquery.flexslider.js @@ -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"; }