Open ovylehzhanin opened 6 years ago
I was able to fix this by changing
if (_.slideCount <= _.options.slidesToShow) {
_.slideOffset = 0;
verticalOffset = 0;
}
to
if (_.slideCount < _.options.slidesToShow) {
_.slideOffset -= _.slideWidth * (_.options.slidesToShow - _.slideCount);
verticalOffset = 0;
}
Could be reproduced here: https://codepen.io/AlexeyVylegzhanin/pen/aaRgpw/?editors=0010
====================================================================
Steps to reproduce the problem
asNavFor
property:slidesToShow
property ;slickGoTo
for the big carousel:====================================================================
What is the expected behaviour?
value for
transform:
property should betranslate3d(0px, 0px, 0px)
;.====================================================================
What is observed behaviour?
value for
transform:
property istranslate3d(-168px, 0px, 0px)
;. As result.slick-track
positioned out of his place====================================================================
More Details
Slick 1.8.1
I guess that this issue related for #1370 Left translate is wrong when centerMode is true and there is only one slide.