Skip to content

Commit

Permalink
indentation cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Jun 9, 2011
1 parent d552c2a commit 94064d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/holobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ var Holobox = (function(){
updateOrientation();

event.preventDefault();
}
}

function onMotionChange( event ) {
function onMotionChange( event ) {
var beta = orientation === 1 ? -event.accelerationIncludingGravity.z : -event.accelerationIncludingGravity.z;
var gamma = orientation === 1 ? -event.accelerationIncludingGravity.y : -event.accelerationIncludingGravity.x;

perspective.tx = ( ( gamma / 5 ) + 0.5 ) * 100;
perspective.ty = ( ( beta / 5 ) - 0.5 ) * 100;

event.preventDefault();
}
}

function updateOrientation() {
// Check if we're in portrait or landscape mode as we'll need
Expand Down

0 comments on commit 94064d7

Please sign in to comment.