Add missing recalculations of the thumb

This commit is contained in:
ExMatics HydrogenC
2024-06-01 18:23:37 +08:00
committed by GitHub
parent e0791eacad
commit 9e9013ec43

View File

@@ -100,6 +100,7 @@ namespace FlaxEngine.GUI
if (value > _maximum)
throw new ArgumentOutOfRangeException();
_minimum = value;
UpdateThumb();
if (Value < _minimum)
Value = _minimum;
}
@@ -116,6 +117,7 @@ namespace FlaxEngine.GUI
if (value < _minimum)
throw new ArgumentOutOfRangeException();
_maximum = value;
UpdateThumb();
if (Value > _maximum)
Value = _maximum;
}