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:
Samuel Susla authored and Facebook GitHub Bot committed 2022-08-08 05:01:19 -07:00
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];
}