Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Avoid double event subscribes in gesture manager #23242

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

Redth
Copy link
Member

@Redth Redth commented Jun 25, 2024

Description of Change

Alternative to #23238 and #23183

Adding dynamic gesture recognizers to a control on android did cause us to register multiple times to the Touch event on the platform view from the Gesture Manager. This change instead tries to always unsubscribe first when setting up the gestures (which happens every time the gesture collection changes). Previously we only unsubscribed if we decided we did not need the touch event for any of the gesture recognizers, but then would subscribe again over and over if we decided we did need a touch event.

Issues Fixed

Fixes #23177

@Redth Redth requested a review from a team as a code owner June 25, 2024 14:51
@PureWeen
Copy link
Member

/rebase

@github-actions github-actions bot force-pushed the dev/redth/fix-android-dynamic-tap-gesture-events branch from 524f9b6 to e10452e Compare June 27, 2024 00:17
@PureWeen PureWeen enabled auto-merge (squash) June 27, 2024 17:04
@PureWeen PureWeen merged commit 372c66c into main Jun 27, 2024
47 checks passed
@PureWeen PureWeen deleted the dev/redth/fix-android-dynamic-tap-gesture-events branch June 27, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants