Browse Source

Break the loop if the superview is found.

BDisp 1 year ago
parent
commit
704f1407d8
1 changed files with 2 additions and 0 deletions
  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;