Fix AutoFocus on ContainerControl to be false by default

This commit is contained in:
Wojtek Figat
2025-07-15 12:33:33 +02:00
parent c0cce748cc
commit 9646dd3fc2
13 changed files with 24 additions and 3 deletions

View File

@@ -368,6 +368,8 @@ namespace FlaxEditor.GUI.Input
public SliderControl(float value, float x = 0, float y = 0, float width = 120, float min = float.MinValue, float max = float.MaxValue)
: base(x, y, width, TextBox.DefaultHeight)
{
AutoFocus = true;
_min = min;
_max = max;
_value = Mathf.Clamp(value, min, max);