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

Doesn't work on iOS inside an iframe #1

Open
lonekorean opened this issue Jul 14, 2018 · 0 comments
Open

Doesn't work on iOS inside an iframe #1

lonekorean opened this issue Jul 14, 2018 · 0 comments

Comments

@lonekorean
Copy link
Owner

The background scrolls statically with the page. No physics-based movement.

The problem stems from how iOS handles iframe height: https://blog.codepen.io/2017/12/01/stupid-iframes-stupid-ios/ . This causes the canvas element to be sized to the content height instead of the viewport height.

Possible workaround is to hide the body, get viewport height, then restore body.

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

No branches or pull requests

1 participant