Parcourir la source

Break the loop if the superview is found.

BDisp il y a 1 an
Parent
commit
704f1407d8
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      Terminal.Gui/Views/ScrollView.cs

+ 2 - 0
Terminal.Gui/Views/ScrollView.cs

@@ -149,6 +149,8 @@ public class ScrollView : View
                 if (supView == _contentView)
                 {
                     Application.GrabMouse (this);
+
+                    break;
                 }
 
                 supView = supView.SuperView;