Skip to content

Commit

Permalink
animate cubes
Browse files Browse the repository at this point in the history
  • Loading branch information
unconed committed Sep 17, 2014
1 parent 0d760f9 commit b2aa461
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 11 deletions.
6 changes: 3 additions & 3 deletions build/threestrap-extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,9 +1057,9 @@ THREE.VRControls = function (object, domElement) {
this.supported = false;
var callback = function (event) {
this.supported = event && event.alpha == +event.alpha;
window.removeEventListener('deviceorientation', callback, false);
window.removeEventListener('deviceorientation', callback, false);
}.bind(this);
window.addEventListener('deviceorientation', callback, false);
window.addEventListener('deviceorientation', callback, false);
}

THREE.VRControls.prototype.vr = function (vrstate) {
Expand Down Expand Up @@ -1331,7 +1331,7 @@ THREE.Bootstrap.registerPlugin('vr', {
defaults: {
mode: 'auto', // 'auto', '2d'
device: null,
fov: 90, // emulated FOV for fallback
fov: 80, // emulated FOV for fallback
},

listen: ['window.load', 'pre', 'render', 'resize', 'this.change'],
Expand Down
Loading

0 comments on commit b2aa461

Please sign in to comment.