naweed / Maui.Controls.BottomSheet

Bottom Sheet control built using .Net Maui
MIT License
151 stars 21 forks source link

These content after BottomSheet still can be clicked #1

Open xtuzy opened 2 years ago

xtuzy commented 2 years ago

Current:

https://user-images.githubusercontent.com/17793881/186628120-d288cbdc-24e6-4cbc-a928-508fbb6281e5.mp4

Hope like this:

https://user-images.githubusercontent.com/17793881/186629864-91344dea-f8f4-4a3c-9db5-cbf7db9a01f0.mp4

naweed commented 2 years ago

Yes, I have this issue on almost everything on Maui.Android. On iOS, this issue is not there. Hopefully, this will be fixed by MAUI team soon.

Buryyy commented 1 year ago

As a temporary hack, this issue can be avoided by having an empty TagGestureReconizer on the base Grid of the content view.

            <Grid.GestureRecognizers>
                <TapGestureRecognizer Command="{x:Null}" />
            </Grid.GestureRecognizers>
nellydcp commented 1 year ago

I'm currently checking this project to use it in my personal project and I followed Buryyy's suggestion but with the following change: `

</Grid.GestureRecognizers>`

This way, the sheet will disappear whenever I click outside of it.

langhaoabcd commented 1 year ago
<Grid.GestureRecognizers>
            <SwipeGestureRecognizer Direction="Down" Swiped="CloseBottomSheetButton_Swiped"/>
            <TapGestureRecognizer  Command="{x:Null}" Tapped="CloseBottomSheetButton_Tapped"/>
</Grid.GestureRecognizers>