File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ @implementation RCTTouchHandler
3939 BOOL _dispatchedInitialTouches;
4040 BOOL _recordingInteractionTiming;
4141 CFTimeInterval _mostRecentEnqueueJS;
42+ uint16_t _coalescingKey;
4243}
4344
4445- (instancetype )initWithBridge : (RCTBridge *)bridge
@@ -200,7 +201,7 @@ - (void)_updateAndDispatchTouches:(NSSet<UITouch *> *)touches
200201 RCTTouchEvent *event = [[RCTTouchEvent alloc ] initWithEventName: eventName
201202 reactTouches: reactTouches
202203 changedIndexes: changedIndexes
203- coalescingKey: 0 ];
204+ coalescingKey: _coalescingKey ];
204205 [_eventDispatcher sendEvent: event];
205206}
206207
@@ -233,6 +234,7 @@ - (void)handleGestureUpdate:(__unused UIGestureRecognizer *)gesture
233234{
234235 // If gesture just recognized, send all touches to JS as if they just began.
235236 if (self.state == UIGestureRecognizerStateBegan) {
237+ _coalescingKey++;
236238 [self _updateAndDispatchTouches: _nativeTouches.set eventName: @" topTouchStart" originatingTime: 0 ];
237239
238240 // We store this flag separately from `state` because after a gesture is
You can’t perform that action at this time.
0 commit comments