mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Remove redundant _forceDispatchNextScrollEvent calls
Summary: changelog: [internal] `_forceDispatchNextScrollEvent` is already called inside `- (void)scrollToOffset:(CGPoint)offset animated:(BOOL)animated`. No need to call it before. Reviewed By: cipolleschi Differential Revision: D38499299 fbshipit-source-id: cf6635e02bf582346869f77194cf06be7939351f
This commit is contained in:
1 parent
b4f6262bcc
commit
904b3b67e2
1 file changed
-2
@@ -590,7 +590,6 @@ static void RCTSendScrollEventForNativeAnimations_DEPRECATED(UIScrollView *scrol
|
||||
offset = CGPointMake(localX, localY);
|
||||
}
|
||||
|
||||
[self _forceDispatchNextScrollEvent];
|
||||
[self scrollToOffset:offset animated:animated];
|
||||
}
|
||||
|
||||
@@ -645,7 +644,6 @@ static void RCTSendScrollEventForNativeAnimations_DEPRECATED(UIScrollView *scrol
|
||||
|
||||
- (void)scrollToOffset:(CGPoint)offset
|
||||
{
|
||||
[self _forceDispatchNextScrollEvent];
|
||||
[self scrollToOffset:offset animated:YES];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user