Merge branch 'deselect-content' of https://github.com/Tryibion/FlaxEngine into Tryibion-deselect-content
This commit is contained in:
@@ -69,7 +69,6 @@ namespace FlaxEditor.Windows
|
||||
|
||||
// Update UI
|
||||
UpdateUI();
|
||||
_view.SelectFirstItem();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user