From 88c0a19ab7b6659f13619869b458a4e0f324a295 Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Tue, 11 Dec 2018 00:23:51 -0800 Subject: [PATCH] temp hack for vr display activate issues --- src/components/hack.js | 10 ++++++++++ src/index.html | 1 + 2 files changed, 11 insertions(+) create mode 100644 src/components/hack.js diff --git a/src/components/hack.js b/src/components/hack.js new file mode 100644 index 0000000..7cc901c --- /dev/null +++ b/src/components/hack.js @@ -0,0 +1,10 @@ +AFRAME.registerComponent('hack', { + play: function () { + setTimeout(() => { + this.el.sceneEl.exitVR(); + setTimeout(() => { + this.el.sceneEl.enterVR(); + }, 100); + }, 250); + } +}); diff --git a/src/index.html b/src/index.html index 6f006a7..ed791f2 100644 --- a/src/index.html +++ b/src/index.html @@ -42,6 +42,7 @@ debug-controller debug-song-time debug-state + hack gpu-preloader {% if DEBUG_INSPECTOR %} inspector="url: http://localhost:3333/dist/aframe-inspector.js"