Sliders work properly when initialized to 0.0
This commit is contained in:
parent
55637e36db
commit
d01d39569b
@ -1,5 +1,6 @@
|
||||
package objects
|
||||
|
||||
import "math"
|
||||
import "image"
|
||||
import "git.tebibyte.media/tomo/tomo"
|
||||
import "git.tebibyte.media/tomo/tomo/input"
|
||||
@ -33,6 +34,7 @@ func newSlider (orient string, value float64) *Slider {
|
||||
},
|
||||
layout: sliderLayout {
|
||||
vertical: orient == "vertical",
|
||||
value: math.NaN(),
|
||||
},
|
||||
step: 0.05,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user