Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Merge pull request #15 from AltspaceVR/bug/fullspace-stateful
Browse files Browse the repository at this point in the history
Fix fullspace flag
  • Loading branch information
Steven Vergenz authored Nov 28, 2016
2 parents aca1524 + 69f0ab7 commit 8331521
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
7 changes: 5 additions & 2 deletions dist/aframe-altspace-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,13 @@
{
if(this.data.fullspace){
e.requestFullspace();
e.addEventListener('fullspacechange', function(){
scene.scale.setScalar(e.pixelsPerMeter);
});
}

if (!this.data.usePixelScale){
scene.scale.multiplyScalar(e.pixelsPerMeter);
if (!this.data.usePixelScale || this.data.fullspace){
scene.scale.setScalar(e.pixelsPerMeter);
}

switch (this.data.verticalAlign) {
Expand Down
2 changes: 1 addition & 1 deletion dist/aframe-altspace-component.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ AFRAME.registerComponent('altspace', {
{
if(this.data.fullspace){
e.requestFullspace();
e.addEventListener('fullspacechange', function(){
scene.scale.setScalar(e.pixelsPerMeter);
});
}

if (!this.data.usePixelScale){
scene.scale.multiplyScalar(e.pixelsPerMeter);
if (!this.data.usePixelScale || this.data.fullspace){
scene.scale.setScalar(e.pixelsPerMeter);
}

switch (this.data.verticalAlign) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aframe-altspace-component",
"version": "1.0.0",
"version": "1.1.1",
"description": "aframe-altspace-component makes A-frame apps compatible with AltspaceVR.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 8331521

Please sign in to comment.