jeanregisser / react-native-slider

A pure JavaScript <Slider> component for react-native
MIT License
1.3k stars 571 forks source link

thumbs go beyond the track when setting the maximum value to be lower than the current value of the slider #188

Open teowks000 opened 3 years ago

teowks000 commented 3 years ago

for example, my current slider value is 4388 but when I set maximum value to 4000, the thumbs will go beyond the track but when you set it above the current value such as 5000 or 4500, the thumbs will move backward and work normally. Is there any workaround for this one?

alantoa commented 2 years ago

@teowks000 Hi, you can try react-native-awesome-slider. Automatic clamp value, slider total value it comes from the sum of the maximum and the minimum, slider value always between the maximum and the minimum.