diff --git a/slider.go b/slider.go index 4ae1c47..1a138e2 100644 --- a/slider.go +++ b/slider.go @@ -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, }