How to set the value during the sliding process
How to set the value during the sliding process, so that the marker can have custom scrolling logic
That is not possible as of today since passing new props is blocked when the markers are actively being updated. https://github.com/ptomasroos/react-native-multi-slider/blob/master/MultiSlider.js#L98
What type of logic where you considering @shenshenwlb ?
@ptomasroos hi! I faced the same issue. I'm trying to implement a "magnetic" slider with some maximum possible difference between min and max values. And when the actual diff is bigger than maximum, I want to change the second marker value as well. Maybe there are some workarounds?
I have the same request. Say a slider with a max range of 30 with a buffer of 3 to the min and max. Total possible range is 36 but the max allowable selected distance is 30.
- When Marker1 = 0, then Marker2 should stop at 30 (not 36).
- When Marker1 = 3, then Marker2 should stop at 33 (not 36).
Right now, I can stop override the values, but the slider markers do not update the position when dragging is finished.
I guess this would be a maxMarkerOverlapDistance and work similar to your existing minMarkerOverlapDistance
Today this is not possible @cnickless Can you explain to me the use-case for having a "buffer" on each side? Is it a design purpose or something else?
I have same problem if I change Marker1 I want to change also Marker2, I'm getting updated value with state but Marker2 position doesn't change, what should I do?