alantoa / react-native-awesome-slider

🚀 An anwesome <Slider/> that supports various features haptic, lottie, animation, ballon, etc.
MIT License
228 stars 28 forks source link

Only allow drag input if user is holding onto the thumb #63

Open rageshoo opened 3 months ago

rageshoo commented 3 months ago

Right now, I can press anywhere along the slider. The thumb will move to where I pressed and follow as I drag along the slider.

I want to only allow dragging if the user presses on the thumb first, before dragging. Is this possible to achieve?

alantoa commented 3 months ago

Can you please try setting disableTapEvent={false} on the slider?

rageshoo commented 3 months ago

Can you please try setting disableTapEvent={false} on the slider?

Setting 'disableTapEvent={true}' fixes it partially. I can no longer tap to random spots along the slider.

However, if I tap on any random spot on the slider and drag, the thumb will jump and follow the drag.

I only want the thumb to move if I touch it first then drag.