diff --git a/Terminal.Gui/Core/Application.cs b/Terminal.Gui/Core/Application.cs index 2632c69be..eb1200999 100644 --- a/Terminal.Gui/Core/Application.cs +++ b/Terminal.Gui/Core/Application.cs @@ -656,11 +656,8 @@ namespace Terminal.Gui { lastMouseOwnerView?.OnMouseLeave (me); } // System.Diagnostics.Debug.WriteLine ($"{nme.Flags};{nme.X};{nme.Y};{mouseGrabView}"); - if (mouseGrabView != null) { - mouseGrabView.OnMouseEvent (nme); - if (mouseGrabView != null) { - return; - } + if (mouseGrabView != null && mouseGrabView.OnMouseEvent (nme)) { + return; } }