code style

This commit is contained in:
xxSeys1
2025-04-06 22:17:09 +02:00
parent 628bffd63e
commit aaf87e3960

View File

@@ -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);
}
/// <inheritdoc />