File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1423,6 +1423,15 @@ - (void)traverseForScrollView:(UIView *)view
1423
1423
// we don't want to send `scrollViewDidEndDecelerating` event to JS before the JS thread is ready
1424
1424
return ;
1425
1425
}
1426
+
1427
+ if ([NSStringFromClass ([view class ]) isEqualToString: @" AVPlayerView" ]) {
1428
+ // Traversing through AVPlayerView is an uncommon edge case that causes the disappearing screen
1429
+ // to an excessive traversal through all video player elements
1430
+ // (e.g., for react-native-video, this includes all controls and additional video views).
1431
+ // Thus, we want to avoid unnecessary traversals through these views.
1432
+ return ;
1433
+ }
1434
+
1426
1435
if ([view isKindOfClass: [UIScrollView class ]] &&
1427
1436
([[(UIScrollView *)view delegate ] respondsToSelector: @selector (scrollViewDidEndDecelerating: )])) {
1428
1437
[[(UIScrollView *)view delegate ] scrollViewDidEndDecelerating: (id )view];
You can’t perform that action at this time.
0 commit comments