Skip to content

Fix missing begin event on Android for Pinch and Rotation#2264

Merged
j-piasecki merged 2 commits into
mainfrom
@jpiasecki/fix-pinch-rotation-begin-event
Oct 21, 2022
Merged

Fix missing begin event on Android for Pinch and Rotation#2264
j-piasecki merged 2 commits into
mainfrom
@jpiasecki/fix-pinch-rotation-begin-event

Conversation

@j-piasecki

Copy link
Copy Markdown
Member

Description

This PR sets the focal point/anchor to the position of the pointer before sending begin event on Android. At the position it's being sent, it's always NaN at the moment, which causes the event not to be received by the detector.

Test plan

Add pinch & rotation gestures to the app and check whether the begin event is called.

@j-piasecki j-piasecki requested a review from m-bert October 19, 2022 08:09
lukmccall added a commit to expo/expo that referenced this pull request Oct 20, 2022
# Why

It is connected with software-mansion/react-native-gesture-handler#2264.

# How

Applied unpublished path from the gesture handler repository.

# Test Plan

- expo-go with NCL ✅
@j-piasecki j-piasecki merged commit 4b9b0bc into main Oct 21, 2022
@j-piasecki j-piasecki deleted the @jpiasecki/fix-pinch-rotation-begin-event branch October 21, 2022 08:24
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.

2 participants