Skip to content

[website] Allow overscroll-behavior on embedded snack#687

Open
dmaixner93 wants to merge 1 commit into
expo:mainfrom
dmaixner93:feature/allow-overscroll-behavior
Open

[website] Allow overscroll-behavior on embedded snack#687
dmaixner93 wants to merge 1 commit into
expo:mainfrom
dmaixner93:feature/allow-overscroll-behavior

Conversation

@dmaixner93

@dmaixner93 dmaixner93 commented May 19, 2026

Copy link
Copy Markdown

Why

This PR addresses this issue raised in the React Native Website repository regarding the embedded snack's scroll behavior.

As I mentioned on the linked issue, this issue appears on Chromea and Firefox (and maybe Edge?) - but not on Safari.

How

Removed overscroll-behavior: none from the body element. This allows the user to continue scrolling the page when they have scrolled to the end of the code block on an embedded snack. Alternatively, if we want to keep the CSS property we could change it to overscroll-behavior: auto.

Test Plan

The easiest way to test this feature is to go a page on the React Native website (i.e. https://reactnative.dev/docs/flatlist#example) with an embedded snack, inspect the snack, and remove overscroll-behavior: none from the body element inside the iframe. Once the CSS property is removed, scroll to the end of the code block on the embedded snack and continue scrolling - the page should scroll as expected.

Here are some screen recordings showing before and after the property is removed.

Before
snack-scroll-behavior-before

After
snack-scroll-behavior-after

@dmaixner93 dmaixner93 requested a review from byCedric as a code owner May 19, 2026 15:32
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.

1 participant