Browse Source
Merge pull request #4160 from AvaloniaUI/fixes/menuscroller-pointerleave
Close submenu when pointer leaves.
pull/4164/head
Jumar Macato
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs
|
|
@ -333,6 +333,10 @@ namespace Avalonia.Controls.Platform |
|
|
{ |
|
|
{ |
|
|
item.Parent.SelectedItem = null; |
|
|
item.Parent.SelectedItem = null; |
|
|
} |
|
|
} |
|
|
|
|
|
else if (!item.IsPointerOverSubMenu) |
|
|
|
|
|
{ |
|
|
|
|
|
item.IsSubMenuOpen = false; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|