Fix context menu disappearing

Fix #10
This commit is contained in:
stefnotch
2020-12-23 14:11:11 +01:00
parent 2acad9963f
commit 310140e91b

View File

@@ -303,7 +303,7 @@ namespace FlaxEditor.GUI.ContextMenu
if (_parentCM != null)
{
// Focus parent if user clicked over the parent popup
var mouse = _parentCM.ScreenToClient(FlaxEngine.Input.MouseScreenPosition / Platform.DpiScale);
var mouse = _parentCM.ScreenToClient(FlaxEngine.Input.MouseScreenPosition);
if (_parentCM.ContainsPoint(ref mouse))
{
_parentCM._window.Focus();