Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scroll position resetting when opening media modals in web UI #11815

Merged
merged 1 commit into from
Sep 12, 2019

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Sep 12, 2019

When shouldUpdateScroll is passed into <ScrollContainer /> component, it only works if what's inside the container is really scrollable. In single column mode, it is not. Instead, the whole page scrolls. The main <ScrollContext /> is responsible for that, so we need to pass it the correct shouldUpdateScroll too.

@Gargron Gargron added the bug Something isn't working label Sep 12, 2019
@Gargron Gargron merged commit 50755a4 into master Sep 12, 2019
@Gargron Gargron deleted the fix-scroll-reset-modal branch September 12, 2019 18:15
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants