uno icon indicating copy to clipboard operation
uno copied to clipboard

`Flyout.OverlayInputPassThroughElement` does not appear to work in WASM

Open jsinsel-kahua opened this issue 1 year ago • 2 comments

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

jsinsel-kahua avatar Jun 22 '23 16:06 jsinsel-kahua

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

ramezgerges avatar Jul 10 '23 12:07 ramezgerges

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

ramezgerges avatar Apr 22 '24 20:04 ramezgerges