maui icon indicating copy to clipboard operation
maui copied to clipboard

Click goes through solid elements on android

Open Quietscheente opened this issue 2 years ago • 4 comments

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

  1. Create an empty Maui project
  2. 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>
  1. Click inside the red border
  2. 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

Quietscheente avatar Dec 11 '22 10:12 Quietscheente

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.

ghost avatar Dec 12 '22 10:12 ghost

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

XamlTest avatar Jun 12 '23 06:06 XamlTest

Verified on .NET 8 Preview 6, API33

davidortinau avatar Jul 06 '23 19:07 davidortinau

Still reproduced with .NET 8. @mattleibow I guess this is part of the input transparent work you have been doing?

#14846

jfversluis avatar Nov 22 '23 08:11 jfversluis

Just opened an issue myself and bot suggested it was a duplicate of this one. Any updates?

Suggested workaround while gets fixed #22442

nk-alex avatar May 16 '24 08:05 nk-alex

Duplicate of https://github.com/dotnet/maui/issues/10252

mattleibow avatar May 30 '24 17:05 mattleibow