From d01d39569be1f1427dbde6b4c31cb7d1d7cefb99 Mon Sep 17 00:00:00 2001 From: "sashakoshka@tebibyte.media" Date: Thu, 20 Jun 2024 17:48:41 -0400 Subject: [PATCH] Sliders work properly when initialized to 0.0 --- slider.go | 2 ++ 1 file changed, 2 insertions(+) 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, }