react-native-macos 0.68.63 → 0.68.64
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 +9 -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/Gemfile.lock +1 -1
- package/template/package.json +1 -1
|
@@ -130,6 +130,10 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)coder)
|
|
|
130
130
|
// The assumption here is that a RCTUIView/RCTSurfaceView will always have a superview.
|
|
131
131
|
CGPoint touchLocation = [self.view.superview convertPoint:touch.locationInWindow fromView:nil];
|
|
132
132
|
NSView *targetView = [self.view hitTest:touchLocation];
|
|
133
|
+
// Don't record clicks on scrollbars.
|
|
134
|
+
if ([targetView isKindOfClass:[NSScroller class]]) {
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
133
137
|
// Pair the mouse down events with mouse up events so our _nativeTouches cache doesn't get stale
|
|
134
138
|
if ([targetView isKindOfClass:[NSControl class]]) {
|
|
135
139
|
_shouldSendMouseUpOnSystemBehalf = [(NSControl*)targetView isEnabled];
|
|
@@ -400,6 +404,11 @@ static BOOL RCTAnyTouchesChanged(NSSet *touches) // [TODO(macOS GH#774)
|
|
|
400
404
|
// "end"/"cancel" needs to remove the touch *after* extracting the event.
|
|
401
405
|
[self _recordNewTouches:touches];
|
|
402
406
|
|
|
407
|
+
// [TODO(macOS GH#774) - Filter out touches that were ignored.
|
|
408
|
+
touches = [touches objectsPassingTest:^(id touch, BOOL *stop) {
|
|
409
|
+
return [_nativeTouches containsObject:touch];
|
|
410
|
+
}]; // ]TODO(macOS GH#774)
|
|
411
|
+
|
|
403
412
|
[self _updateAndDispatchTouches:touches eventName:@"touchStart"];
|
|
404
413
|
|
|
405
414
|
if (self.state == UIGestureRecognizerStatePossible) {
|
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED
package/template/Gemfile.lock
CHANGED