maui icon indicating copy to clipboard operation
maui copied to clipboard

Fix for Frame PanGestureRecognizer is not working in Android

Open SuthiYuvaraj opened this issue 1 year ago • 8 comments

Root Cause

The touch events in the Frame control on the Android platform are not handled correctly. Specifically, in the FrameRenderer, the touch event handler consistently returns true, which suppresses the default behavior and prevents the expected response to touch interactions.

Description of Change

The MotionEventHelper class contains a method called ShouldPassThroughElement(), which is designed to evaluate whether a touch event should be passed through an element. Utilizing this method will ensure correct touch handling, thereby resolving the issue

Issues Fixed

Fixes #16978

Output Video

Before Issue Fix After Issue Fix

SuthiYuvaraj avatar Oct 14 '24 09:10 SuthiYuvaraj

/azp run

jsuarezruiz avatar Oct 14 '24 10:10 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 14 '24 10:10 azure-pipelines[bot]

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 16 '24 13:10 azure-pipelines[bot]

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 17 '24 11:10 azure-pipelines[bot]

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 18 '24 09:10 azure-pipelines[bot]

/azp run

jsuarezruiz avatar Oct 22 '24 13:10 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 22 '24 13:10 azure-pipelines[bot]

/rebase

jsuarezruiz avatar Oct 23 '24 08:10 jsuarezruiz

/azp run

jsuarezruiz avatar Oct 24 '24 15:10 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 24 '24 15:10 azure-pipelines[bot]

/rebase

jsuarezruiz avatar Nov 11 '24 16:11 jsuarezruiz

/azp run

jsuarezruiz avatar Nov 11 '24 16:11 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Nov 11 '24 16:11 azure-pipelines[bot]

Since Frame is now officially deprecated lets not spend too much time on this. Closing for now.

jfversluis avatar Jan 02 '25 13:01 jfversluis