Skip to content

Commit

Permalink
1.4.1 | Editor won't overlay on iPhones (#316)
Browse files Browse the repository at this point in the history
* Fixed issue where editor overlays view for iPhones (#315)

* 1.4.1 version number

* 1.4.1 change log
  • Loading branch information
jasondkiesling authored Jul 6, 2019
1 parent bf4aa89 commit 023aa76
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ The Engaging Computing Group develops new technologies to enable learners—yout
## Status
[![CircleCI](https://circleci.com/gh/engaging-computing/MYR.svg?style=shield)](https://circleci.com/gh/engaging-computing/MYR)

## Change Log - 1.3.0 -> 1.4.0
- Update viewer camera to not give errors in console
- `getRandomColor()` can take an array and choose a random color from the array.
- Reference page doesn't have uncaught error from no editor.
- Reference page tab titles hide on small screens.
- Nested groups are supported.
## Change Log - 1.4.0 -> 1.4.1
- Editor won't overlay VR mode on iPhones

## Acknowledgments
MYR uses [Aframe](https://aframe.io), a fantastic open source project, to render objects and effects in the three dimensional space.
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": "myr",
"version": "1.4.0",
"version": "1.4.1",
"private": false,
"engines": {
"node": "10.13.0"
Expand Down
8 changes: 8 additions & 0 deletions src/components/structural/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ class View extends Component {
e.preventDefault();
}
}, false);

window.addEventListener("enter-vr", () => {
document.getElementById("interface").style.visibility = "hidden";
});

window.addEventListener("exit-vr", () => {
document.getElementById("interface").style.visibility = "visible";
});
}
// This fires off an event when the system is fully rendered.
componentDidUpdate() {
Expand Down

0 comments on commit 023aa76

Please sign in to comment.