Closed michaelcuneo closed 3 years ago
The problem is coming from the value passed to autoplay
prop. It is supposed to be a number indicating the interval between shifts in milliseconds so when we pass true
the interval will be set to run every 1 millisecond producing the crazy spinning.
Wow, this was such a simple fix, I can't see how I didn't see this. Judging from the documentation the duration is set with the duration variable. Not a value passed to autoPlay.
Yeah this probably isn't the most obvious way to handle autoplay. The flip-side is that you can set a duration and then not turn on autoplay, which is also a bit awkward. I'm open to suggestions to improve this API.
Can't seem to stop the slider from spinning around like crazy when autoplay is on.