Skip to content

Fix viewability for zero-sized lists (#58000) - #58074

Open
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D116699497
Open

Fix viewability for zero-sized lists (#58000)#58074
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D116699497

Conversation

@Abbondanzo

Copy link
Copy Markdown
Contributor

Summary:

VirtualizedList viewability only considered the scroll-axis viewport length. A horizontal list with zero height could therefore report items as viewable. Record the cross-axis length in the same scroll metrics snapshot and require both viewport dimensions to be non-zero for viewability.

Changelog:
[General][Fixed] - Prevent zero-sized lists from reporting viewable items

Reviewed By: zeyap

Differential Revision: D116699497

Summary:

VirtualizedList viewability only considered the scroll-axis viewport length. A horizontal list with zero height could therefore report items as viewable. Record the cross-axis length in the same scroll metrics snapshot and require both viewport dimensions to be non-zero for viewability.

Changelog:
[General][Fixed] - Prevent zero-sized lists from reporting viewable items

Reviewed By: zeyap

Differential Revision: D116699497
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 22, 2026
@meta-codesync

meta-codesync Bot commented Aug 22, 2026

Copy link
Copy Markdown

@Abbondanzo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D116699497.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant