Fix clicking "centre on selected object" button not updating slider state

This commit is contained in:
Bartłomiej Dach 2024-10-07 10:28:44 +02:00
parent cf66d40b00
commit 3da59f44b5
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -188,6 +188,12 @@ protected override void LoadComplete()
StartPosition.Value = new Vector2(StartPosition.Value.X, y.NewValue);
}, true);
StartPosition.BindValueChanged(pos =>
{
StartPositionX.Value = pos.NewValue.X;
StartPositionY.Value = pos.NewValue.Y;
});
Spacing.BindValueChanged(spacing =>
{
spacingSlider.ContractedLabelText = $"S: {spacing.NewValue:N0}";