uno
uno copied to clipboard
`Flyout.OverlayInputPassThroughElement` does not appear to work in WASM
Current behavior
Set up a button with a flyout with OverlayInputPassThroughElement set to the view. This way the user can click on another button even with the flyout open. This works in WinUI, but not in WASM.
Expected behavior
OverlayInputPassThroughElement works in WASM
How to reproduce it (as minimally and precisely as possible)
Attaching a repro. FlyoutPassThrough.zip
Workaround
No response
Works on UWP/WinUI
Yes
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
This is due to the fact that FlyoutBase.OverlayInputPassThroughElement is not implemented in Uno yet. https://github.com/unoplatform/uno/blob/master/src/Uno.UI/Generated/3.0.0.0/Windows.UI.Xaml.Controls.Primitives/FlyoutBase.cs#L31C20
https://github.com/unoplatform/uno/assets/66218781/31c8b8dc-f6ec-46ff-ac25-bde3870d5883
It seems only PointerPressed is passed through (on skia and wasm) while PointerMoved events (and others) are not. This blocks MenuBar's "cycling between menus" behaviour (see also https://github.com/unoplatform/uno/pull/13918, https://github.com/unoplatform/uno/pull/14290) which depends on OverlayPassthroughElement