We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd6619 commit 288c458Copy full SHA for 288c458
1 file changed
packages/react-native-gesture-handler/apple/Handlers/RNNativeViewHandler.mm
@@ -167,8 +167,14 @@ - (void)bindToView:(UIView *)view
167
168
- (void)unbindFromView
169
{
170
+ UIView *view = self.recognizer.view;
171
+
172
+ if ([view isKindOfClass:[UIControl class]]) {
173
+ [(UIControl *)view removeTarget:self action:NULL forControlEvents:UIControlEventAllEvents];
174
+ }
175
176
// Restore the React Native's overriden behavor for not delaying content touches
- UIScrollView *scrollView = [self retrieveScrollView:self.recognizer.view];
177
+ UIScrollView *scrollView = [self retrieveScrollView:view];
178
scrollView.delaysContentTouches = NO;
179
180
[super unbindFromView];
0 commit comments