akiran / akiran/react-slick

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

未關閉
#1,886 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
11.9k
分支
2.1k
PR 合併指標
30 天內沒有已合併 PR

描述

`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)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。