akiran / akiran/react-slick

Extra space at last slider when slidesToShow is setup as decimals

Aberta
#1,851 2 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
11.9k
Forks
2.1k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Hi, i'm running with a issue on my slick sliding functionality, let me attach the setup:

`var settings = { slidesToShow: 1.25, infinite: false, arrows: false, dots: false, swipeToSlide: true, touchThreshold: 100, speed: 200, responsive: [ // ], };`

![initial slider](https://user-images.githubusercontent.com/992281/92351741-6ce0cd80-f0aa-11ea-9fef-720f2a0aa5bb.png)

![empty last slider](https://user-images.githubusercontent.com/992281/92351755-79652600-f0aa-11ea-8d60-697bac52125e.png)

The slider works well, however using infinite: false, the carousel get an extra space next from the last slide instead to shows 1/4 first slide again, what are the best values of slidesToShow for the infinite ? thanks.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.