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

isScrubbing is not set to false when tapping on the slider or thumb #54

Open contactsimonwilson opened 6 months ago

contactsimonwilson commented 6 months ago

The isScrubbing value is set to true and never false again when tapping on the slider. This makes styling the slider based on the current interaction state unreliable.

It appears that the issue is that the tap even gesture only sets the values to true and never false again. I would expect it to either set the value to false, or set the value to true, then to false again on a delay. (After some testing, I would recommend no delay)

The current workaround is to manually update the value yourself by passing an onSlidingComplete function but keeping that manually updated defeats the purpose of providing a value.

image