Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…2834) ## Description Replace `locationInView` with `locationOfTouch:inView:` in Pinch handler to fix truncated focalX and focalY in gesture handler context. While reading the [docs](https://developer.apple.com/documentation/uikit/uigesturerecognizer?language=objc) I found the following section that suggest there's an alternative. > Clients of gesture recognizers can also ask for the location of a gesture by calling [locationInView:](https://developer.apple.com/documentation/uikit/uigesturerecognizer/1624219-locationinview?language=objc) or [locationOfTouch:inView:](https://developer.apple.com/documentation/uikit/uigesturerecognizer/1624201-locationoftouch?language=objc). By calculating the midpoint using `[locationOfTouch:inView:]` we get the same number, but with accuracy of many decimal places Fixes #2833 ## Test plan Tested on repro example in (#2833).
- Loading branch information