Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
shehan committed Mar 9, 2017
1 parent 9e2d9ac commit d457fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/js/group-chat-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@
setInterval(function(){
if($scope.deviceOrientation.beta >= 40 && $scope.deviceOrientation.beta<=66)
pos = "DOWN";
if($scope.deviceOrientation.beta >= -30 && $scope.deviceOrientation.beta<=-15)
if($scope.deviceOrientation.beta >= 150 && $scope.deviceOrientation.beta<=170)
pos = "UP";
if($scope.deviceOrientation.gamma >= 30 && $scope.deviceOrientation.gamma<=80)
pos = "LEFT";
if($scope.deviceOrientation.gamma >= -80 && $scope.deviceOrientation.gamma<=-30)
if($scope.deviceOrientation.gamma >= 115 && $scope.deviceOrientation.gamma<=150)
pos = "RIGHT";

if (pos != ''){
Expand Down

0 comments on commit d457fe4

Please sign in to comment.