Context
During manual testing of the Avalonia 12 migration in #51, a menu item remains visually hovered after the pointer leaves the menu and moves into the embedded browser area.
The first observation was made with:
- GuacamoleClient Avalonia dev preview
- Avalonia 12.0.5
- Avalonia.Controls.WebView 12.0.1
- Ubuntu 24.04.4 LTS
- GNOME Wayland session with the GTK/X11 WebView running through XWayland
Steps to reproduce
- Start the Avalonia client with a configured Guacamole server.
- Move the pointer over an item in the top menu.
- Move the pointer directly from the menu into the native WebView area.
- Observe the menu item background and foreground colors.
Actual behavior
The menu item keeps its hover colors after the pointer has left it. The :pointerover visual state is not reset reliably.
Expected behavior
The menu item immediately returns to its normal colors when the pointer leaves it, including when the pointer enters the native WebView.
Technical notes
This may be caused by the embedded native control intercepting pointer events before Avalonia receives PointerExited. Avalonia tracks the general limitation in AvaloniaUI/Avalonia#5256.
The current application styles use regular MenuItem:pointerover selectors, so the first investigation should distinguish an application style issue from a NativeControlHost pointer-transition issue.
Related migration ticket: #51
Test checklist
Context
During manual testing of the Avalonia 12 migration in #51, a menu item remains visually hovered after the pointer leaves the menu and moves into the embedded browser area.
The first observation was made with:
Steps to reproduce
Actual behavior
The menu item keeps its hover colors after the pointer has left it. The :pointerover visual state is not reset reliably.
Expected behavior
The menu item immediately returns to its normal colors when the pointer leaves it, including when the pointer enters the native WebView.
Technical notes
This may be caused by the embedded native control intercepting pointer events before Avalonia receives PointerExited. Avalonia tracks the general limitation in AvaloniaUI/Avalonia#5256.
The current application styles use regular MenuItem:pointerover selectors, so the first investigation should distinguish an application style issue from a NativeControlHost pointer-transition issue.
Related migration ticket: #51
Test checklist