mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Merge pull request #1395 from BDisp/scrollview-clipping-fix
Fixes #1394. Added ReflectedType to check for overridden.
This commit is contained in:
@@ -207,7 +207,7 @@ namespace Terminal.Gui {
|
||||
Type t = view.GetType ();
|
||||
MethodInfo m = t.GetMethod ("MouseEvent");
|
||||
|
||||
return m.DeclaringType == t && m.GetBaseDefinition ().DeclaringType == typeof (Responder);
|
||||
return (m.DeclaringType == t || m.ReflectedType == t) && m.GetBaseDefinition ().DeclaringType == typeof (Responder);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user