Updated ViewMouse unit tests

This commit is contained in:
Tig
2024-04-01 14:24:32 -06:00
parent f3c3825f34
commit d57b58be1a
9 changed files with 418 additions and 229 deletions

View File

@@ -104,7 +104,8 @@ public partial class View
{
if (!Enabled)
{
return true;
// A disabled view should not eat mouse events
return false;
}
if (!CanBeVisible (this))
@@ -150,6 +151,7 @@ public partial class View
{
if (!Enabled)
{
// QUESTION: Is this right? Should a disabled view eat mouse clicks?
args.Handled = true;
return true;
}