HamburgerMenuApp
HamburgerMenuApp copied to clipboard
Tap Gesture Recognizer not working
I've been testing with this sample apps (its very awesome! well done) and I've found that Tapping on the flyoutBackdrop, does not close the flyout menu. I am testing this in an Android emulator on my touch screen laptop, is this a bug in MAUI or the way in which I am testing? Or is there an issue with adding a TapGestureRecognizer on a Rectangle?
<Rectangle
x:Name="flyoutBackdrop"
Fill="Black"
Margin="-1"
InputTransparent="True">
<Rectangle.GestureRecognizers>
<TapGestureRecognizer
Tapped="FlyoutBackdropTapped"/>
</Rectangle.GestureRecognizers>
</Rectangle>
https://github.com/RadekVyM/HamburgerMenuApp/blob/1420d5c501377c9956c74d0c2322b17ea9d889df/src/HamburgerMenuApp.Maui/AppShell.xaml#L152
Hi @brentos99,
thanks for the info. The bug is caused by changing the value of the InputTransparent property, which does not work properly in .NET 7. This should be hopefully fixed in .NET 8.