Skip to content

Set safe area to Top of exit-webxr-ar-button#3464

Merged
elalish merged 1 commit intogoogle:masterfrom
yuta-hayashi:fix-webxr-exit-button-position
May 16, 2022
Merged

Set safe area to Top of exit-webxr-ar-button#3464
elalish merged 1 commit intogoogle:masterfrom
yuta-hayashi:fix-webxr-exit-button-position

Conversation

@yuta-hayashi
Copy link
Contributor

Reference Issue

Fixes #3463
On devices with a punch hole in the upper right corner, such as Galaxy s10/ s10+, the close button in WebAR mode overlaps with it and is not very visible.

To solve this problem I added safe-area-inset-top to the top of exit-webxr-ar-button.
And it does not overlap with the punch hole as shown in the Galaxy s10 screen in the following picture.

model-viewer xr mode screen

@elalish elalish merged commit 45e6f59 into google:master May 16, 2022
Copy link
Contributor

@elalish elalish left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

The close button in WebXR mode is not visible on the Android device with a punch hole.

2 participants