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

UX: background-attachment fix for iOS #3

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

hnb-ku
Copy link
Contributor

@hnb-ku hnb-ku commented Aug 29, 2019

iOS devices ignore background-attachment: fixed due to their concerns about its performance costs. This PR moves the theme background to a separate element that's set to position: fixed as a way of working around that limitation. This PR affects all devices but introduces no visual changes whatsoever. Everything should look exactly the same.

It only allows the same effect to work on iOS devices with the added benefit of improved scroll performance for other types of devices.

@hnb-ku hnb-ku merged commit 4c0a5aa into discourse:master Aug 29, 2019
jordanvidrine added a commit that referenced this pull request Aug 12, 2020
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.

1 participant