syedowaisali / crystal-range-seekbar

537 stars 164 forks source link

cant set gap for max value greater than 100 #100

Open Mohsin92 opened 6 years ago

Mohsin92 commented 6 years ago

If you set the max value =1000 and want to set gap is 200 than the library wont work beacause in the code of libray at apply function the formula is: gap = Math.max(0, Math.min(gap, absoluteMaxValue - absoluteMinValue)); gap = gap / (absoluteMaxValue - absoluteMinValue) * 100;

according to this formula it gives the gap value is 20.0 but i want it 200.0 that's wrong. please check it.

Navdeep05Paras commented 3 years ago

i am also getting this issue. Please help me