Commit 4b9b0bc
authored
Fix missing
## 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.begin event on Android for Pinch and Rotation (#2264)1 parent 108b78b commit 4b9b0bc
2 files changed
Lines changed: 10 additions & 0 deletions
File tree
- android/src/main/java/com/swmansion/gesturehandler/core
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
0 commit comments