Skip to content
Snippets Groups Projects
Commit ee261c4a authored by Per Lindgren's avatar Per Lindgren
Browse files

This dial does neither go to zero (nor 11)

parent f0901cf0
Branches
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ impl Widget<f64> for Dial {
// set data
// maybe we can get scroll wheel direction from Env/Preferences
*data = *data - delta;
*data = f64::min(1.0, f64::max(0.0, *data));
*data = f64::min(1.0, f64::max(0.001, *data));
ctx.invalidate();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment