Skip to content

Commit

Permalink
Merge pull request #12738 from RaananW/webxrButtonOverlayStyling
Browse files Browse the repository at this point in the history
[XR] Do not style overlay if custom buttons provided
  • Loading branch information
carolhmj authored Jul 13, 2022
2 parents 8e5bafb + 2911c69 commit d78fc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev/core/src/XR/webXREnterExitUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export class WebXREnterExitUI implements IDisposable {
) {
this.overlay = document.createElement("div");
this.overlay.classList.add("xr-button-overlay");
this.overlay.style.cssText = "z-index:11;position: absolute; right: 20px;bottom: 50px;";

// prepare for session granted event
if (!options.ignoreSessionGrantedEvent && (navigator as any).xr) {
Expand All @@ -131,6 +130,7 @@ export class WebXREnterExitUI implements IDisposable {
if (options.customButtons) {
this._buttons = options.customButtons;
} else {
this.overlay.style.cssText = "z-index:11;position: absolute; right: 20px;bottom: 50px;";
const sessionMode = options.sessionMode || "immersive-vr";
const referenceSpaceType = options.referenceSpaceType || "local-floor";
const url =
Expand Down

0 comments on commit d78fc01

Please sign in to comment.