From a041d7f634e7ced83950a2db1bbafd27ca784927 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Fri, 22 May 2026 19:24:49 -0400 Subject: fix slider grabber going out of range when value is out of range --- teensy/teensy_ui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/teensy/teensy_ui.c b/teensy/teensy_ui.c index 8ee35fb..050b1a1 100644 --- a/teensy/teensy_ui.c +++ b/teensy/teensy_ui.c @@ -498,6 +498,7 @@ void tyui_slider_ex( // Grabber { + value = ty_clamp(value, min, max); float p = (value - min) / max; int x = (rect.w - grabber_size) * p + rect.x; -- cgit v1.3-2-g0d8e