tweak loading indicator
This commit is contained in:
@@ -115,8 +115,7 @@ AFRAME.registerComponent('song', {
|
||||
|
||||
onFetchProgress: function (evt) {
|
||||
const progress = evt.loaded / evt.total;
|
||||
this.songLoadingIndicator.setAttribute(
|
||||
'geometry', 'thetaLength', progress * 360);
|
||||
this.songLoadingIndicator.setAttribute('geometry', 'thetaLength', progress * 360);
|
||||
},
|
||||
|
||||
onRestart: function () {
|
||||
|
||||
@@ -77,8 +77,9 @@
|
||||
id="songLoadingIndicator"
|
||||
bind__visible="isSongLoading"
|
||||
geometry="primitive: ring; radiusInner: 0.05; radiusOuter: 0.08"
|
||||
material="shader: flat; color: #FAFAFA; opacity: 0.75"
|
||||
position="0 1.4 -2.5">
|
||||
material="shader: flat; color: #FAFAFA; opacity: 0.75; side: back"
|
||||
position="0 1.4 -2.5"
|
||||
rotation="0 180 0">
|
||||
</a-entity>
|
||||
|
||||
<a-entity
|
||||
|
||||
Reference in New Issue
Block a user