RawInput: fix input latching when dragging and switching between windows

This commit is contained in:
2022-06-11 21:55:55 +03:00
parent 66b0b4c965
commit 753a6c73f8
2 changed files with 56 additions and 17 deletions

View File

@@ -346,6 +346,10 @@ namespace FlaxEditor.GUI.Docking
{
if (button == MouseButton.Left)
{
// Workaround to make sure the mouse down event which initiated dragging in moved window gets properly
// released when this window gets destroyed.
_toMove.Window.Window.Internal_OnMouseUp(ref location, button);
Dispose();
}
}