Skip to content

Commit

Permalink
Revert "Center active slide in infinite vertical center mode"
Browse files Browse the repository at this point in the history
  • Loading branch information
leggomuhgreggo committed Apr 20, 2017
1 parent 492b822 commit 1801566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slick/slick.js
Expand Up @@ -1076,7 +1076,7 @@
if (_.options.infinite === true) {
if (_.slideCount > _.options.slidesToShow) {
_.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1;
verticalOffset = (verticalHeight * _.options.slidesToShow + verticalHeight) * -1;
verticalOffset = (verticalHeight * _.options.slidesToShow) * -1;
}
if (_.slideCount % _.options.slidesToScroll !== 0) {
if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) {
Expand Down

0 comments on commit 1801566

Please sign in to comment.