react-native-macos 0.71.31 → 0.71.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTTouchHandler.m +2 -3
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
|
@@ -229,11 +229,10 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)coder)
|
|
|
229
229
|
NSEvent *nativeTouch = _nativeTouches[touchIndex];
|
|
230
230
|
CGPoint location = nativeTouch.locationInWindow;
|
|
231
231
|
RCTAssert(_cachedRootView, @"We were unable to find a root view for the touch");
|
|
232
|
-
CGPoint rootViewLocation = [_cachedRootView
|
|
232
|
+
CGPoint rootViewLocation = [_cachedRootView convertPoint:location fromView:nil];
|
|
233
|
+
|
|
233
234
|
NSView *touchView = _touchViews[touchIndex];
|
|
234
235
|
CGPoint touchViewLocation = [touchView convertPoint:location fromView:nil];
|
|
235
|
-
// JavaScript expects coordinates to have (0,0) at top left, unlike the macOS coordinate system
|
|
236
|
-
rootViewLocation.y = NSHeight([[_cachedRootView window] frame]) - rootViewLocation.y;
|
|
237
236
|
#endif // macOS]
|
|
238
237
|
|
|
239
238
|
NSMutableDictionary *reactTouch = _reactTouches[touchIndex];
|
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED