Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame + Shadow ignores TapGestureRecognizer #22518

Open
nk-alex opened this issue May 20, 2024 · 2 comments
Open

Frame + Shadow ignores TapGestureRecognizer #22518

nk-alex opened this issue May 20, 2024 · 2 comments
Labels
area-controls-frame Frame area-gestures Gesture types platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@nk-alex
Copy link

nk-alex commented May 20, 2024

Description

Whenever I put shadow on my Frame, the gesture recognizer gets ignored.

Steps to Reproduce

<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="App.Views.MyView">

<ContentView.Content>
   <Frame HeightRequest="110" WidthRequest="110" CornerRadius="10" BorderColor="Transparent" Padding="10" Margin="3">
	   <Frame.Shadow>
	      <Shadow Brush="Black" Radius="20" Opacity="0.8" Offset="15, 15"/>
	   </Frame.Shadow>

		<Frame.GestureRecognizers>
	       <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/>
		</Frame.GestureRecognizers>

		<Label Text="Hello"/>
   </Frame>
</ContentView.Content>

</ContentView>

Link to public reproduction project repository

No response

Version with bug

8.0.21 SR4.1

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

android 21

Did you find any workaround?

Removing the shadow from control makes Gesture recognizers work as expected

Relevant log output

No response

@nk-alex nk-alex added the t/bug Something isn't working label May 20, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@kevinxufei
Copy link
Collaborator

kevinxufei commented May 21, 2024

Verified this issue with Visual Studio 17.10.0 Preview 7(8.0.3/8.0.21/8.0.40). Can repro on Android platform. If use Border control instead of Frame, shadow works well.
P3

@kevinxufei kevinxufei added platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-frame Frame area-gestures Gesture types platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants