kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.54k stars 5.89k forks source link

Appearing gap after last slide, don't want to scroll #3025

Open gt06 opened 7 years ago

gt06 commented 7 years ago

Appearing gap after the last slide, and when we overcome the last slide, suddenly remaining slides appearing slick-slider-issue

Below is the code for initialization of the main slider and left thumbnail slider. jQuery('.slider-for').slick({ dots: false, infinite: true, slidesToShow: 2, slidesToScroll: 1, asNavFor: '.slider-nav', autoPlay: true }); jQuery('.slider-nav').slick({ asNavFor: '.slider-for', dots: false, focusOnSelect: true, arrows: false, vertical: true, slidesPerRow: 1, placeholders: false });

I have uploaded above gif with the issue.

  1. Whenever I click on next arrow and come at last slide, seeing a gap after the last slide. As soon as, I overcoming the last slide, suddenly remaining slides are appearing.
  2. Same applied for the previous arrow also.

What is the expected behavior?

  1. When I click on next and previous arrows, the gap should not be there.
  2. Also, I don't want to scroll left thumbnail slider. It should be fixed.

====================================================================

What is observed behaviour?

  1. Remaining slides getting disappear till the last slide, then suddenly display after overcoming last slide.
  2. Left thumbnail slider getting scrolled.

====================================================================

More Details

leggomuhgreggo commented 7 years ago

Can you recreate in a reduced test case on either codepen or jsfiddle?

gt06 commented 7 years ago

Hello,

I have created codepen for that.

https://codepen.io/gt06/pen/YxGrWR

You can see that bugs in my codepen. When you click on Prev and Next button, you get the gap in thumbnail slider. Also i do not want to scroll the images which are present in .slider-nav slider.

lyolkinn commented 7 years ago

+1 , the same issue with vertical thumbnails.

lyolkinn commented 7 years ago

Here are the tests https://jsfiddle.net/lyolkinn/ppyprhrc/

oscarstranger commented 5 years ago

+1