mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Fixes #2014. Application mouseGrabView is run twice if return true. * Sometimes I get fails with this unit test.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user