akiran / akiran/react-slick

Pagination Dots Not Activating Correctly with decimal Values for slidesToShow and infinite: false.

Abierto
#2,345 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
11.9k
Forks
2.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Hello,

I've found an issue where the pagination dots do not behave as expected when a user sets an decimal number for `slidesToShow `(e.g., 1.5) and `infinite `is set to false.

In this scenario, the last pagination dot doesn't become active (the class "slick-active" isn't applied) when the last "page" of slides is visible. Pls use navigation buttons to slide.

For a demonstration of the problem, please view the CodeSandbox example I've put together:

https://codesandbox.io/s/react-slick-playground-forked-p5gmx6

I look forward to any suggestions for resolving this issue.

Thanks!

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.