This repository has been archived by the owner on May 1, 2024. It is now read-only.
This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] [iOS] iOS 15.5 TapGestureRecognizer triggers when tap in a wrong area when used with AbsoluteLayout #15517
Labels
Description
[iOS] TapGestureRecognizer is triggered in the wrong area when using AbsoluteLayout in iOS 15.5. (Works fine in iOS 15.4) Tested using the Simulator.
If you have two AbsoluteLayout components where the bottom one takes over the whole page and the top one is smaller in the middle of the page. The bottom one has TapGestureRecognizer.
Tapping over the top smaller one triggers the TapGestureRecognizer Tapped event (and it shouldn't). When tapping over the bottom large one it doesn't trigger the Tapped event (and it should).
Note this happens only of the bottom element uses absolute layout to take over the whole page. If the bottom element take a bit less of the page then the Tapped event is triggered as expected - only for the visible part of the bottom element.
Steps to Reproduce
Example:
`
< ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="App2.Views.AboutPage"
xmlns:vm="clr-namespace:App2.ViewModels"
>
< /ContentPage>
`
2. Tapping the visible part of the bottom element should trigger Tapped event (and it doesn't)
3. Tapping the smaller top element should not trigger the Tapped event (but it does)
Expected Behavior
Actual Behavior
Basic Information
Screenshots
The text was updated successfully, but these errors were encountered: