From aaf87e3960deaf5b8578d0f1f982e9308f9c47fc Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Sun, 6 Apr 2025 22:17:09 +0200 Subject: [PATCH] code style --- Source/Editor/GUI/Input/SliderControl.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Editor/GUI/Input/SliderControl.cs b/Source/Editor/GUI/Input/SliderControl.cs index ea5fcab1f..ddc10d85f 100644 --- a/Source/Editor/GUI/Input/SliderControl.cs +++ b/Source/Editor/GUI/Input/SliderControl.cs @@ -157,7 +157,8 @@ namespace FlaxEditor.GUI.Input Render2D.FillRectangle(lineRect, TrackLineColor); // Draw thumb - Render2D.FillRectangle(_thumbRect, _isSliding ? ThumbColorSelected : (_thumbRect.Contains(PointFromWindow(Root.MousePosition)) ? ThumbColorHovered : ThumbColor)); + bool mouseOverThumb = _thumbRect.Contains(PointFromWindow(Root.MousePosition)); + Render2D.FillRectangle(_thumbRect, _isSliding ? ThumbColorSelected : mouseOverThumb ? ThumbColorHovered : ThumbColor); } ///