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 UI cutoff on mobile #594

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix UI cutoff on mobile #594

wants to merge 2 commits into from

Conversation

UX3D-hohenester
Copy link
Contributor

Mobile browser can overlap the page with their own ui elements. These do not reduce the vh property used in css. This can be mitigated using the dvh (dynamic view height) property instead.

fixes #593

(Additionally this pr replaces window.innerWidth with documen.documentElement.clientWidth for mobile detection, since the former does not report the actual window width on ios. mozilla innerWidth webkit bug )

@UX3D-haertl UX3D-haertl self-assigned this Dec 18, 2024
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

Successfully merging this pull request may close these issues.

UI cutoff on mobile
2 participants