Merge branch 'deselect-content' of https://github.com/Tryibion/FlaxEngine into Tryibion-deselect-content

This commit is contained in:
Wojtek Figat
2023-04-13 10:45:39 +02:00
2 changed files with 11 additions and 1 deletions

View File

@@ -69,7 +69,6 @@ namespace FlaxEditor.Windows
// Update UI
UpdateUI();
_view.SelectFirstItem();
}
}

View File

@@ -941,6 +941,17 @@ namespace FlaxEditor.Windows
return true;
}
if (button == MouseButton.Left)
{
// Find control that is under the mouse
var c = GetChildAtRecursive(location);
if (c is ContentView)
{
_view.ClearSelection();
return true;
}
}
return base.OnMouseUp(location, button);
}