diff --git a/js/isvr-hotspot-text-listener.js b/js/isvr-hotspot-text-listener.js index bbf14d5..f9467dc 100644 --- a/js/isvr-hotspot-text-listener.js +++ b/js/isvr-hotspot-text-listener.js @@ -8,6 +8,7 @@ AFRAME.registerComponent('isvr-hotspot-text-listener', { document.querySelector('#photosphere-menu').getAttribute('visible') == false) { this.setAttribute('visible', false); + this.setAttribute('position', {x:0, y:10, z:-2.1}); var hotspot_text = document.querySelectorAll('.hotspot-text'); for (var i = 0; i < hotspot_text.length; i++) { diff --git a/js/isvr-hotspot-wrapper-listener.js b/js/isvr-hotspot-wrapper-listener.js index 0ab30bf..2edf998 100644 --- a/js/isvr-hotspot-wrapper-listener.js +++ b/js/isvr-hotspot-wrapper-listener.js @@ -40,6 +40,7 @@ AFRAME.registerComponent('isvr-hotspot-wrapper-listener', { this.setAttribute('visible', false); + document.querySelector('.hotspot-text-content-id-' + this.getAttribute('data-text-content-id')).setAttribute('position', {x:0, y:1.6, z:-2.1}); document.querySelector('.hotspot-text-content-id-' + this.getAttribute('data-text-content-id')).setAttribute('visible', true); } }); diff --git a/views/partials/hotspot_text_box_partial.blade.php b/views/partials/hotspot_text_box_partial.blade.php index 21b6457..43c4998 100644 --- a/views/partials/hotspot_text_box_partial.blade.php +++ b/views/partials/hotspot_text_box_partial.blade.php @@ -4,7 +4,7 @@ isvr-hotspot-text-listener class="collidable hotspot-text hotspot-text-content-id-{{ $annotation['#content-id'] . $rand }}" visible="false" - position="0 1.6 -2.1" + position="0 10 -2.1" rotation="0 0 0" geometry="primitive: plane; width: 1.8; height: 0.66" material="color: #FFFFFF; transparent: true; opacity: 0.5"> diff --git a/views/scene.blade.php b/views/scene.blade.php index 0f264a3..dd58de5 100644 --- a/views/scene.blade.php +++ b/views/scene.blade.php @@ -143,7 +143,7 @@ class="collidable"