Invoke ShowPopup via RunOnIdle
- Issue MatterHackers/MCCentral#2932 Overflow popup causes "mouse should not be locked" errors
This commit is contained in:
parent
e128dd752a
commit
5ac2065308
1 changed files with 2 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
if ((mouseUpInBounds || buttonView?.MouseCaptured == true)
|
||||
&& !menuVisibileAtMouseDown)
|
||||
{
|
||||
ShowPopup();
|
||||
UiThread.RunOnIdle(this.ShowPopup);
|
||||
}
|
||||
|
||||
base.OnMouseUp(mouseEvent);
|
||||
|
|
@ -133,6 +133,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
this.PopupWindowClosed?.Invoke(this, null);
|
||||
};
|
||||
|
||||
popupWidget.Focus();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue