瀏覽代碼

Prevents ScrollView from handling the mouse if the content view needs to handle it.

BDisp 5 年之前
父節點
當前提交
4c30df4347
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Terminal.Gui/Views/ScrollView.cs

+ 4 - 1
Terminal.Gui/Views/ScrollView.cs

@@ -537,7 +537,10 @@ namespace Terminal.Gui {
 				vertical.MouseEvent (me);
 			else if (me.Y == horizontal.Frame.Y)
 				horizontal.MouseEvent (me);
-
+			else if (IsOverridden (me.View)) {
+				Application.UngrabMouse ();
+				return false;
+			}
 			return true;
 		}
 	}