Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
fixed animationLoop logic disabling nav buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarsh410 committed Dec 15, 2017
1 parent ed79657 commit d0df131
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions demo/js/jquery.flexslider.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @preserve
* jQuery FlexSlider v2.6.4
* SC customizations 0.3 - added swiping flag; fixed resize bind issue in v2.6.4; improved itemMargin consideration in carousel's slider.visible calculation
* SC customizations 0.4 - added swiping flag; fixed resize bind issue in v2.6.4; improved itemMargin consideration in carousel's slider.visible calculation; fixed animationLoop logic disabling nav buttons
* Copyright 2012 WooThemes
* Contributing Author: Tyler Smith
*/
Expand Down Expand Up @@ -854,8 +854,8 @@
(asNav && slider.currentItem === 0 && target === slider.pagingCount - 1 && slider.direction !== "next") ? false :
(target === slider.currentSlide && !asNav) ? false :
(slider.vars.animationLoop) ? true :
(slider.atEnd && slider.currentSlide === 0 && target === last && slider.direction !== "next") ? false :
(slider.atEnd && slider.currentSlide === last && target === 0 && slider.direction === "next") ? false :
(slider.atEnd && slider.currentSlide === 0 && target === last && slider.direction === "next") ? false :
(slider.atEnd && slider.currentSlide === last && target === 0 && slider.direction !== "next") ? false :
true;
};
slider.getTarget = function(dir) {
Expand Down Expand Up @@ -1128,7 +1128,7 @@
// Usability features
pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
pauseInvisible: true, //{NEW} Boolean: Pause the slideshow when tab is invisible, resume when visible. Provides better UX, lower CPU usage.
pauseInvisible: true, //{NEW} Boolean: Pause the slideshow when tab is invisible, resume when visible. Provides better UX, lower CPU usage.
useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available
touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
Expand Down
Loading

0 comments on commit d0df131

Please sign in to comment.