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

Bug/54109 mobile scrolling within a modal scrolls the content underneath #15687

Conversation

apfohl
Copy link
Member

@apfohl apfohl commented May 28, 2024

https://community.openproject.org/work_packages/54109

This fixes the scrolling background when a modal is open. This is achieved by adding and removing an attribute to the body respecting when a modal is open or not.

@apfohl apfohl requested a review from HDinger May 28, 2024 09:17
@apfohl apfohl force-pushed the bug/54109-mobile-scrolling-within-a-modal-scrolls-the-content-underneath branch from 442e0f9 to aa0e172 Compare May 28, 2024 09:17
Copy link
Contributor

@HDinger HDinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On most of our pages, the body is not the actual scroll container. The solution does correctly prevent any scrolling in the back. However, the scroll position is not maintained correctly because you are storing the value from the body and not from the actual scroll container.

scroll_position

Unfortunately, we do not have that one container that is responsible for scrolling on all pages. It even differs between mobile and and desktop size. So I am not sure whether we can follow this approach after all. If you want to, we can discuss that today.

@apfohl apfohl force-pushed the bug/54109-mobile-scrolling-within-a-modal-scrolls-the-content-underneath branch 2 times, most recently from 0dd22bf to def9e8d Compare June 11, 2024 06:54
@apfohl apfohl force-pushed the bug/54109-mobile-scrolling-within-a-modal-scrolls-the-content-underneath branch from def9e8d to 9790542 Compare June 25, 2024 07:26
@apfohl apfohl force-pushed the bug/54109-mobile-scrolling-within-a-modal-scrolls-the-content-underneath branch 2 times, most recently from ddba9aa to 4efb378 Compare July 22, 2024 07:27
@apfohl apfohl force-pushed the bug/54109-mobile-scrolling-within-a-modal-scrolls-the-content-underneath branch 2 times, most recently from 99192f6 to 95e9e70 Compare September 16, 2024 06:21
@apfohl apfohl force-pushed the bug/54109-mobile-scrolling-within-a-modal-scrolls-the-content-underneath branch from 95e9e70 to 2ccf51c Compare October 7, 2024 09:24
@apfohl apfohl force-pushed the bug/54109-mobile-scrolling-within-a-modal-scrolls-the-content-underneath branch from 70cb5e0 to fa70157 Compare October 21, 2024 08:32
@apfohl
Copy link
Member Author

apfohl commented Oct 21, 2024

In agreement with @Kharonus and @HDinger we close this PR.

@apfohl apfohl closed this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants