Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next Previous Issue when only one slide offscreen #843

Open
robdew69 opened this issue Jul 17, 2019 · 0 comments
Open

Next Previous Issue when only one slide offscreen #843

robdew69 opened this issue Jul 17, 2019 · 0 comments

Comments

@robdew69
Copy link

I am running into an issue with the previous control on the carousel on https://www.liberty.edu/lp/betterworld/david-hess/. There are 7 slides and on my desktop monitor, 6 are visible. On page load, the next button works and slides the images to the left, showing the one image that was offscreen.

However, even though the previous button is enabled, it does not slide back.

If I resize the screen smaller or add more images, it works. It seems to only be an issue when ALL but one slide is visible.

Below is the JS we are including:

$('.fade-slider .slider, .slider.fade-slider').each(function() {
var cycle = $(this),
controls = cycle.find('.controls'),
fx = cycle.data('fx') || 'fade',
speed = cycle.data('speed') || 200;
cycle.cycle({
log: false,
speed: speed,
fx: fx,
swipe: true,
slides: "> div",
next: controls.find('.cycle-next'),
prev: controls.find('.cycle-prev'),
carouselVisible: 1,
});
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant