Commit a5d490c1 authored by Valérie Maquil's avatar Valérie Maquil

small correction in value widget

to ensure max value can be better reached
parent d1b1dfe8
......@@ -191,7 +191,11 @@ public class ValueWidget extends TetherableWidget implements InformationProvider
}
if (constrainted) {
value = lowerBound + (stepSize * Math.floor(((angle - lowerStopAngle) / stepAngle)));
// value = lowerBound + (stepSize * Math.floor(((angle - lowerStopAngle) / stepAngle)));
double numSteps = Math.round(((angle - lowerStopAngle) / stepAngle));
value = lowerBound + (stepSize * numSteps);
if (value < this.lowerBound) {
value = this.lowerBound;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment