react-native-macos 0.71.14 → 0.71.15
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 -0
- 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
|
@@ -232,6 +232,8 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)coder)
|
|
|
232
232
|
CGPoint rootViewLocation = [_cachedRootView.window.contentView convertPoint:location toView:_cachedRootView];
|
|
233
233
|
NSView *touchView = _touchViews[touchIndex];
|
|
234
234
|
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;
|
|
235
237
|
#endif // macOS]
|
|
236
238
|
|
|
237
239
|
NSMutableDictionary *reactTouch = _reactTouches[touchIndex];
|
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED