GaugeView icon indicating copy to clipboard operation
GaugeView copied to clipboard

Continuously input issue

Open arildojr opened this issue 10 years ago • 0 comments

Hi Sulejman,

I've been using your GaugeView library posted on Github and it's going well though. However I'm facing an issue when inputting target values to the gauge. Everything works fine beside if I continuously input values in a moderate speed. For example, a gauge from 0 to 100 continuously increasing starting at 0 (for example using a slider) at a moderate speed will get stuck at some point on the way, for example at 63, and then will continue normally till 100. I got to check it out your "computeValue" method and the behavior is when the gauge get stuck it keeps computing values that are close to the target stucked, in that case for example 63, would compute 63.07, 63.41, 63.76, etc causing that needle to stay at 63 for a moment that makes you thing it is stucked. But remember, slider keeps going up in a constant way, no pauses are applied. Can you please help me with this issue?

Waiting for response, Thanks

arildojr avatar Sep 21 '15 13:09 arildojr