Skip to content

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

Merged
Gargron merged 1 commit intomasterfrom
fix-scroll-reset-modal
Sep 12, 2019
Merged

Fix scroll position resetting when opening media modals in web UI#11815
Gargron merged 1 commit intomasterfrom
fix-scroll-reset-modal

Conversation

@Gargron
Copy link
Copy Markdown
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.

2 participants