【发布时间】:2020-12-17 11:00:41
【问题描述】:
我正在使用这个包https://www.npmjs.com/package/react-responsive-carousel。在演示中
http://react-responsive-carousel.js.org/
用户可以在Dragging 之后转到next 幻灯片。它工作正常。但是当我使用相同的包时,我无法拖动到下一张幻灯片。
你能建议我哪里做错了吗?
https://codesandbox.io/s/beautiful-carson-otvj0?file=/src/App.js
<Carousel
autoPlay={true}
infiniteLoop={true}
showArrows={false}
showThumbs={false}
showStatus={false}
>
<div style={{ height: "200px", color: "#fff" }}>this is slide 1</div>
<div style={{ height: "200px", color: "#fff" }}>this is slide 2</div>
<div style={{ height: "200px", color: "#fff" }}>this is slide 3</div>
<div style={{ height: "200px", color: "#fff" }}>this is slide 4</div>
</Carousel>
【问题讨论】:
标签: javascript reactjs react-redux carousel