-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Inconsistent behaviour when using asNavFor, with few slides. #1027
Comments
I believe this is related to an issue I brought up for the last version, which has not been fixed yet. I've notice the same behavior when using usNavFor and different numbers of slides and slidesToShow. When the total number of slides is not divisible by the slideToShow param, it fails... See the thread here... #659 |
I'm experiencing this bug, too. Same scenario, where sometimes we have fewer slides in the nav slider than required, and it breaks, just as in @LarsDol first jsFiddle. |
Now that it looks like @kenwheeler is back in the saddle, I wonder if he'll have a chance to look into this? |
I'm also experiencing this bug. Is there any advancement on this? |
Same here, looking for fix. |
Also have this problem, looking for a fix |
Not a problem at all when we have static page and know how many photos we will have there. Problem appears when we pass the editable website and don't exactly know the amount of slides client will insert there. Fix would be awesome! |
Same bug here... Looking for a fix |
Same bug for me as well :) 👍 |
Looking for a fix also |
Wouldn't it be easier to use the built in slick API to manually manage the two carousels, vs using asNav For? |
Making #1189 the tracking issue for this bug |
Hello! I'm experiencing some problems when using the asNavFor property.
I'm trying to use two sliders, first of which serves as the content, second as the navigation for the content that's available. The content slider shows only 1 item, while the navigation can show 3 thumbnails. Everything works perfectly fine when the sliders have more than 3 items to show. The navigation properly scrolls infinitely, and places .slick-active & .slick-center classes as expected.
The problem arises when there's less or equal slides than the slidesToShow. So in this case, there's 1, 2 or 3 slides. The navigation slider won't properly function. It (to me) randomly appoints .slick-center classes and doesn't set a .slick-active slide at initialisation. It almost looks as if the slider doesn't do anything at all. Problem is that it does respond to focusOnSelect events, so that's weird.
I've created some fiddles:
I've been messing with this for quite a while now. Really hope there's some kind of fix for this.
Thanks!
The text was updated successfully, but these errors were encountered: