Skip to content

Conversation

@j-piasecki
Copy link
Member

Description

As described in the docs, when a view has pointerEvents prop set to box-none then it will never be a touch target but its children might be. Current implementation ignores gestures attached to the view with pointerEvents='box-none' entirely, even if its child is handling events, contrary to how it works on iOS where the gestures attached to parent will also work on the child view (but not on the parent).

This PR changes implementation of the view traversing algorithm to also extract gestures from a view with pointerEvents='box-none' when the target of a touch is its descendant.

Fixes #1575. Supersedes #1710.

Test plan

Tested on the Example app.

@j-piasecki j-piasecki merged commit 593573f into main Jun 15, 2022
@j-piasecki j-piasecki deleted the @jpiasecki/pointer-events-none-extract-parent-handlers branch June 15, 2022 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pointerEvents="box-none" breaks gesture handling

3 participants