akiran / akiran/react-slick

The sliding position is incorrect in slide process when click next arror!

Open
#1,886 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

`const slide = ({ slides }) => {
const sliderSettings = {
infinite: true,
speed: 500,
slidesToShow: 3,
slidesToScroll: 3,
nextArrow: ,
prevArrow:
};

return (

1
2
3
4

);
};`

`function ArrowButton(props) {
const { direction, style, onClick } = props;

return (






);
}`
when click the nextArrow button firstly, the div box only slides a box,but I want to be 3 div boxs.
when it is inital, the situation is as below image:
![image](https://user-images.githubusercontent.com/69444566/91937411-6f4acc80-ed24-11ea-952e-7d58f5bc5eae.png)
after clicking the nextArrow button firstly, the situation is as below image:
![image](https://user-images.githubusercontent.com/69444566/91937446-7d98e880-ed24-11ea-8f91-ef4854a92dac.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.