HamburgerMenuApp icon indicating copy to clipboard operation
HamburgerMenuApp copied to clipboard

Tap Gesture Recognizer not working

Open brentos99 opened this issue 2 years ago • 1 comments
trafficstars

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

brentos99 avatar Oct 18 '23 23:10 brentos99

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.

RadekVyM avatar Oct 21 '23 08:10 RadekVyM