Skip to content

fix: update use-prevent-scroll to fix iOS Safari flickering#232

Open
SimonEggert wants to merge 1 commit intoTemzasse:mainfrom
SimonEggert:fix-ios-safari-flickering
Open

fix: update use-prevent-scroll to fix iOS Safari flickering#232
SimonEggert wants to merge 1 commit intoTemzasse:mainfrom
SimonEggert:fix-ios-safari-flickering

Conversation

@SimonEggert
Copy link

@SimonEggert SimonEggert commented Mar 16, 2026

fixes #231

I've updated the use-prevent-scroll.ts file to the most up-to-date version of the upstream library. Unfortunately, it uses getNonce.ts which only got introduced a few days ago, so it is not available in @react-aria/utils package just yet. I copied it over for now and added a TODO.

However, I tried a packed version of this change and could verify that it indeed resolves the flickering mentioned in the above issue. Could you please check if this would be an applicable solution or if anything prevents the update from being made?

@SimonEggert SimonEggert force-pushed the fix-ios-safari-flickering branch from 9bd3cdb to 11e8069 Compare March 16, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS <body> color flickering when toggling

1 participant