Skip to content

[regression/7.0.81] 7.0.81 Service Release 4 breaks CascadeInputTransparencyΒ #14522

Closed

Description

@rbrettj

Description

After the most recent update (7.0.81), I noticed that the CascadeInputTransparency flag was no longer working on Android. This was not a problem on version 7.0.59. I am aware of this issue that deals with InputTransparency being broken on Android, but this is a separate issue. I suspect that this PR has something to do with it, specifically the change on line 304 of file src/Controls/src/Core/Layout/Layout.cs as it doesn't match the other patterns, but I don't know for sure.

Steps to Reproduce

  1. Create a new .NET MAUI app
  2. Add the following:
<Grid InputTransparent="True" CascadeInputTransparent="False">
    <Button />
</Grid>
  1. Try and click the button

Version with bug

7.0.81

Last version that worked well

7.0.59

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android

Activity

  1. added
    t/bug
    on Apr 12, 2023
  2. added
    i/regression
    area-layout
    on Apr 12, 2023
  3. added this to the Backlog milestone on Apr 12, 2023
  4. jkhoel commented on Apr 17, 2023

    @jkhoel

    I am seeing some similar behaviour, where my pop-ups suddenly stopped working on Android devices. I am not able to pinpoint the issue exactly, so contributing in a very meaningful fashion is hard, but it seems to be related to either gesture recognizers og (most likely) some sort of input transparency behaviour.

    Reverting from 7.0.81 to 7.0.59 solved the issue.

    Edit:
    Correction on the above, we are in fact seeing the same issue as reported. We were setting InputTransparency programmatically on our pop-up card, but it does not seem to cascade down the tree. Could be an issue with BindableProps?

  5. changed the title [-]7.0.81 Service Release 4 breaks CascadeInputTransparency[/-] [+][regression/7.0.81] 7.0.81 Service Release 4 breaks CascadeInputTransparency[/+] on Apr 17, 2023
  6. jonakirke94 commented on Apr 18, 2023

    @jonakirke94

    Is there a known workaround for this? Currently this regression is preventing us from bumping our version

  7. self-assigned this
    on Apr 18, 2023
  8. PureWeen commented on Apr 20, 2023

    @PureWeen
    Member

    You can try copying the method I have here as a workaround
    https://github.com/PureWeen/ShanedlerSamples/blob/main/ShanedlerSamples/Library/Common/HostExtensions.cs#L13-L69

    If that doesn't work, please post something about your code so I can see why.

    @jonakirke94 @jkhoel if you have reproductions or vague examples of code that's broken for you, can you post them here? Just want to make sure we test as many scenarios as possible here.

  9. jonakirke94 commented on Apr 20, 2023

    @jonakirke94

    Thanks, the workaround appears to solve my issues.

    Here is a small reproduction of a slide-in menu.

    InputTransparentRepro.zip

    In this example these things are broken:

    • Scroll when the slide in menu is open
    • Click on things through the slide in menu
    • Click on backdrop does not work
  10. PureWeen commented on Apr 20, 2023

    @PureWeen
    Member

    @jonakirke94 are you on Android?

    I noticed those examples still don't seem to run quite right, but they at least run the same as they did on 7.0.59.

    1. I can still click on things through the slide menu (this same behavior is seen on SR3)
    2. I can still scroll the underlying view if I swipe up on the open panel (this same behavior is seen on SR3)
  11. jonakirke94 commented on Apr 20, 2023

    @jonakirke94

    @PureWeen

    Yes

    Okay, that might be a bug on our end.

    It appears that the backdrop only behaves correctly when there is a TapGestureRecognizer added so I wonder if the InputTransparent even has an effect here.

    See this updated example where the panel also has a TapGestureRecognizer:

    InputTransparentRepro_v2.zip

    Shouldn't setting CascadeInputTransparent="True" on the ContentView also resolve the above issues?

  12. PureWeen commented on Apr 20, 2023

    @PureWeen
    Member

    @PureWeen

    Yes

    Okay, that might be a bug on our end.

    It appears that the backdrop only behaves correctly when there is a TapGestureRecognizer added so I wonder if the InputTransparent even has an effect here.

    See this updated example where the panel also has a TapGestureRecognizer:

    InputTransparentRepro_v2.zip

    Shouldn't setting CascadeInputTransparent="True" on the ContentView also resolve the above issues?

    Yea, it should. We have a PR here that should resolve that scenario. But, that wasn't working in 7.0.52 so just making sure there wasn't a regression.

    Another thing you can do is set the ScrollView on the contentpage to InputTRansparent and cascade that down. That worked for me.

  13. PureWeen commented on Jun 28, 2023

    @PureWeen
    Member

    Fixed by #14650

  14. added
    fixed-in-7.0.92
    on Jul 11, 2023
  15. added
    fixed-in-8.0.0-preview.4.8333
    fixed-in-7.0.86
    on Jul 20, 2023
  16. ghost locked as resolved and limited conversation to collaborators on Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-layoutfixed-in-7.0.100fixed-in-7.0.101fixed-in-7.0.86fixed-in-7.0.92fixed-in-8.0.0-preview.4.8333i/regressionplatform/androidt/bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions