davidchin/react-input-range

Different Step values for Min and Max

abdulmoizlakhani opened this issue · 1 comments

https://drive.google.com/file/d/16EMd3XAavLQvPXJxQFJa2ZcX0eOxKPyG/view

By the reference of above video, I want to open one issue I have faced using this library. I had the demand for input range which has separate step values for min and max.

For example: if I set the step value to 500, now what happen when I drag max or min value pointer it increases constant value of 500 on both points, but what I want is after the max value increases from 10000 it will increase by step value of 1000 and after 20000 it will increase by 2500 but I want this increase only at max point not on min point if min point is under 10000 it will increase by 500, so on, the same behavior as max point.

But what happening at this time is when max value is over 20000, the step is now 2500, so it is also increasing min point by 2500 while it is under 10000 which is wrong.

Please reply if there is any solution or if not kindly take a look at this issue, this feature may make this library more good.

Thanks

Is there any solution for this task?