maui
maui copied to clipboard
Click goes through solid elements on android
Description
If i place a button underneath an element (a border for example) and click on the element on top the click goes through and reaches the button. On windows works like expected, on Android button is clicked.
Steps to Reproduce
- Create an empty Maui project
- Set a button underneath an element for example
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiApp2.MainPage">
<Grid>
<Button Text="Never seen" Clicked="Button_Clicked"/>
<Border BackgroundColor="Red"/>
</Grid>
</ContentPage>
- Click inside the red border
- button clicked event is fired
Link to public reproduction project repository
none
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11 PIxel 5 emulator and Android 12 local phone
Did you find any workaround?
No response
Relevant log output
No response
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Verified this on Visual Studio Enterprise 17.7.0 Preview 1.0. This issue does not repro on Windows 11, repro on Android 13.0-API33 with below Project: 12014.zip
Verified on .NET 8 Preview 6, API33
Still reproduced with .NET 8. @mattleibow I guess this is part of the input transparent work you have been doing?
#14846
Just opened an issue myself and bot suggested it was a duplicate of this one. Any updates?
Suggested workaround while gets fixed #22442
Duplicate of https://github.com/dotnet/maui/issues/10252