When working with vertical mode and implementing auto-switch mechanism using setTimeout and slider.next, at first it was working fine, but after a while (in seconds), it becomes unexpected.
I notice that this issue happens when I added spacing property. If I remove it, it will work just fine.
Please look at video below to get more understanding (the unexpected behavior happens on time 0:18 in the video)
Version
initially facing this issue on version
6.6.14
reproducible on codesandbox on version6.8.5
Reproduce Codesandbox
https://codesandbox.io/p/sandbox/keen-slider-vertical-auto-switch-anomaly-mcw8nt
Issue Description
When working with vertical mode and implementing auto-switch mechanism using
setTimeout
andslider.next
, at first it was working fine, but after a while (in seconds), it becomes unexpected. I notice that this issue happens when I addedspacing
property. If I remove it, it will work just fine.Please look at video below to get more understanding (the unexpected behavior happens on time
0:18
in the video)https://github.com/rcbyr/keen-slider/assets/29223530/b04be266-2c0c-482d-a788-46b18cecb7ef
This is main usage of the useKeenSlider