Slider with non-linear behavior



I am trying to develop a small tool and I am stuck on a very simple problem.

This how I want it to look:

enter image description here

I have

minValue = steps = 100.000
valueRange = 500.000.000 - 100.000
newPercent = where the circle is right now (0-100%)
newValue = minValue + (valueRange * newPercent / 100.0);

The range is very big, and it is very hard to set the right value at the beginning, but when the value is above 200 million, I don't care about 100000. So I wont to make it exponential; e.g., $x=y^2$

That what I was thinking.

I want to make the first steps with 100.000 and them more and more.

Maybe like this?

Maybe I am totally wrong.

Any suggestions?

Fribu - Smart Solutions

Posted 2014-02-11T20:57:20.167

Reputation: 111

Question was closed 2015-01-31T06:54:08.230


Take a look at logarithmic slider, try to implement your ideas and if you get stuck, we will help you for sure :)

– Kuba – 2014-02-11T22:08:34.870

p.s. pressed Alt makes Slider less sensitive. – Kuba – 2014-02-11T22:23:15.520

2On OS X pressing Shift+Options (I guess Shift+Alt on other systems) makes the slider move even slower. I can almost control the 5th digit after the decimal point in a range of (0, 1) like this. – Szabolcs – 2014-02-12T00:53:45.317

1I'm voting to close this question as off-topic because it is too localized and abandoned. – Kuba – 2015-01-31T00:35:06.063

No answers