Sliders work properly when initialized to 0.0

This commit is contained in:
Sasha Koshka 2024-06-20 17:48:41 -04:00
parent 55637e36db
commit d01d39569b

View File

@ -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,
}