Open apedroferreira opened 4 years ago
Hello 👋, I have the same problem here, the thumb goes beyond the boundaries of the slider. Is there a configuration to follow or is it an unwanted behavior?
Thanks!
Just add width to containerStyle <MultiSlider min={0} max={5200} sliderLength={300} values={[1000, 4000]} enabledTwo={true} trackStyle={{backgroundColor: 'red'}} containerStyle={{width: 500}} ..... }} />
We've been seeing this, and on Android the marker isn't responding to touches on the outer half when on the edges (e.g., the sections where the track doesn't exist). Setting width in containerStyle doesn't seem to change anything. We're on React Native 0.61.5, if that makes a difference.
We've been seeing this, and on Android the marker isn't responding to touches on the outer half when on the edges (e.g., the sections where the track doesn't exist). Setting width in containerStyle doesn't seem to change anything. We're on React Native 0.61.5, if that makes a difference.
Did you solve this issue?
I'm having this same issue... I pushed the marker in with markerSize
prop and that kind of works around it
I have solved with below code `customLabel={(e) => { let val1 = e.oneMarkerValue; let val2 = e.twoMarkerValue; return <View style{{flex: 1, flexDirection: "row"}}>
<View style{{flex: 1}}/>
}}`
I have solved with below code
customLabel={(e) => { let val1 = e.oneMarkerValue; let val2 = e.twoMarkerValue; return <View style{{flex: 1, flexDirection: "row"}}> <Text>{val1}</Text> <View style{{flex: 1}}/> <Text>{val2}</Text> </View> }}
Did you paste the wrong part of the code? I don't understand how changing customLabel would fix anything
Hey, first of all thank you for creating this library, it works great and is so customizable, it helped me a lot!
The only issue I had is that when you drag a marker to the extremes of the range slider, it actually goes a bit beyond the edges of the bar(especially in iOS).
In either iOS and Android this does not match the default native slider behavior. I think it would be much better if the markers stopped in the edges by being aligned with the edges of the bar, like the native sliders do, since that alignment makes things look a lot better from a design perspective.
Would it be possible to fix this or support this behavior with an additional option or something?
Thanks!