diff --git a/Source/Editor/GUI/ContextMenu/ContextMenuBase.cs b/Source/Editor/GUI/ContextMenu/ContextMenuBase.cs index 7fb3fe38a..615be2d5b 100644 --- a/Source/Editor/GUI/ContextMenu/ContextMenuBase.cs +++ b/Source/Editor/GUI/ContextMenu/ContextMenuBase.cs @@ -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(); diff --git a/Source/Editor/GUI/Docking/DockHintWindow.cs b/Source/Editor/GUI/Docking/DockHintWindow.cs index c956bb9ad..d8228598a 100644 --- a/Source/Editor/GUI/Docking/DockHintWindow.cs +++ b/Source/Editor/GUI/Docking/DockHintWindow.cs @@ -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