-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
RCTScrollView.m 里找到这个方法
- (void)handleCustomPan:(__unused UIPanGestureRecognizer *)sender
{
//改动地方在这里
if ([self _shouldDisableScrollInteraction] && ![NSStringFromClass([RCTUIManager JSResponder].class) isEqualToString:@"RCTScrollView"]) {
self.panGestureRecognizer.enabled = NO;
self.panGestureRecognizer.enabled = YES;
// TODO: If mid bounce, animate the scroll view to a non-bounced position
// while disabling (but only ifstopScrollInteractionIfJSHasResponderwas
// called during apan). Currently, it will just snap into place which
// is not so bad either.
// Another approach:
// self.scrollEnabled = NO;
// self.scrollEnabled = YES;
}
}
woshi82 and MackJac
Metadata
Metadata
Assignees
Labels
No labels