Merge branch 'fix-dpi-issues' of git://github.com/stefnotch/FlaxEngine into stefnotch-fix-dpi-issues
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -223,8 +223,7 @@ namespace FlaxEditor.GUI.Docking
|
||||
_mouse = FlaxEngine.Input.MouseScreenPosition;
|
||||
|
||||
// Check intersection with any dock panel
|
||||
var dpiScale = Platform.DpiScale;
|
||||
var uiMouse = _mouse / dpiScale;
|
||||
var uiMouse = _mouse;
|
||||
_toDock = _toMove.MasterPanel.HitTest(ref uiMouse, _toMove);
|
||||
|
||||
// Check dock state to use
|
||||
|
||||
Reference in New Issue
Block a user