From 83158a06d27c76f929e2338962ae3c73dbebb106 Mon Sep 17 00:00:00 2001 From: "Will B (Laptop)" Date: Sun, 29 Mar 2026 11:59:23 -0600 Subject: [PATCH] Re-add the minimum value when calculating nearest tick --- sources/engine/Stride.UI/Controls/Slider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/engine/Stride.UI/Controls/Slider.cs b/sources/engine/Stride.UI/Controls/Slider.cs index 6823d706dd..4997b3cab3 100644 --- a/sources/engine/Stride.UI/Controls/Slider.cs +++ b/sources/engine/Stride.UI/Controls/Slider.cs @@ -313,7 +313,7 @@ protected float CalculateClosestTick(float rawValue) var absoluteValue = rawValue - Minimum; var step = (Maximum - Minimum) / TickFrequency; var times = MathF.Round(absoluteValue / step); - return times * step; + return times * step + Minimum; } ///