Closed zhengkaidi closed 4 years ago
@zhengkaidi
Thanks for this question.
I just checked minDraggableOffset
works neither on desktop nor on mobile (even minDraggableOffset={0}
or minDraggableOffset={1}
requires a large offset to change the slide).
As I remember, minDraggableOffset
was introduced in order to work around an issue but I don't remember which one.
Thanks for your answer , it seems that I understand minDraggableOffset wrongly. But now I have another question. After setting keepDirectionWhenDragging on a mobile page ,it is now so sensitive that it slides to next item even if my finger moves a small distance. Do you have any suggestion to help me ? @piotr-s-brainhub
@zhengkaidi
I created an issue for that: https://github.com/brainhubeu/react-carousel/issues/540. You can like (👍) this issue and invite your friends to like it, so more 👍 it has, it's more likely to be fixed by us.
You're also more than welcome to open a PR, fixing it.
@piotr-s-brainhub @zhengkaidi As readme says
Defines the minimum offset to consider the drag gesture
This prop prevents accidental clicks when the carousel has links as slides.
More details here: https://github.com/brainhubeu/react-carousel/issues/131
As the title says,i add minDraggableOffset at Draggable examples in doc(https://brainhubeu.github.io/react-carousel/docs/examples/draggable). And i want to know it's a bug or feature?