Fix content finder item selection issue due to mouse leave event

This commit is contained in:
Wojciech Figat
2021-12-10 16:09:16 +01:00
parent b2765533fb
commit 2ef0aabfbc

View File

@@ -102,19 +102,6 @@ namespace FlaxEditor.Surface.ContextMenu
_finder.Hand = true;
}
/// <inheritdoc />
public override void OnMouseLeave()
{
base.OnMouseLeave();
var root = RootWindow;
if (!_finder.Hand && root != null)
{
root.Cursor = CursorType.Default;
_finder.SelectedItem = null;
}
}
/// <inheritdoc />
public override void OnDestroy()
{