Skip to content

Introduce hysteresis window#53345

Closed
lunaleaps wants to merge 1 commit into
facebook:mainfrom
lunaleaps:export-D80511627
Closed

Introduce hysteresis window#53345
lunaleaps wants to merge 1 commit into
facebook:mainfrom
lunaleaps:export-D80511627

Conversation

@lunaleaps
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [Internal] - Introduce hysteresis window that is nested between the prerender and hidden window sizes. Currently set to enlargening the prerender window by viewport height and width in each direction.

When a VirtualView intersects with the hysteresis window, it mode remains unchanged.

This prevents us dispatch mode changes for things like overscroll.

I put the hysteresis between prerender and hidden because we already avoid dispatching mode changes from visible -> prerender. For prerender -> visible, we use renderState

Differential Revision: D80511627

@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 19, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80511627

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80511627

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80511627

Summary:

Changelog: [Internal] - Introduce hysteresis window that is nested between the prerender and hidden window sizes. Currently set to enlargening the prerender window by hysteresis ratio

When a VirtualView intersects with the hysteresis window, it mode remains unchanged.

This prevents us dispatch mode changes for things like overscroll. 

I put the hysteresis between prerender and hidden because we already avoid dispatching mode changes from visible -> prerender. For prerender -> visible, we use renderState

Reviewed By: yungsters

Differential Revision: D80511627
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 792e450.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 25, 2025
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @lunaleaps in 792e450

When will my fix make it into a release? | How to file a pick request?

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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants