Skip to content

Commit 65972dd

Browse files
mozziusclaude
andcommitted
Fix iOS maintainVisibleContentPosition skipping a clipped anchor
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent bf62cce commit 65972dd

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,12 +1111,6 @@ - (void)_adjustForMaintainVisibleContentPosition
11111111
return;
11121112
}
11131113

1114-
// Abort if the first visible view was deleted during mount (not recycled)
1115-
// This prevents MVCP from applying a delta after scrollToOffset(0) during reset/clear
1116-
if (_firstVisibleView.superview != _contentView) {
1117-
return;
1118-
}
1119-
11201114
std::optional<int> autoscrollThreshold = props.maintainVisibleContentPosition.value().autoscrollToTopThreshold;
11211115
BOOL horizontal = _scrollView.contentSize.width > self.frame.size.width;
11221116
// TODO: detect and handle/ignore re-ordering

0 commit comments

Comments
 (0)