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 0c1a753 commit 9e2d9ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/js/group-chat-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}

if ($window.DeviceOrientationEvent) {
$window.addEventListener("deviceorientation", orientation, true);
$window.addEventListener("deviceorientation", orientation, false);
}
else{
alert("DeviceOrientation NOT supported");
Expand Down Expand Up @@ -83,9 +83,9 @@
var pos='';
setInterval(function(){
if($scope.deviceOrientation.beta >= 40 && $scope.deviceOrientation.beta<=66)
pos = "UP";
if($scope.deviceOrientation.beta >= -30 && $scope.deviceOrientation.beta<=-15)
pos = "DOWN";
if($scope.deviceOrientation.beta >= -30 && $scope.deviceOrientation.beta<=-15)
pos = "UP";
if($scope.deviceOrientation.gamma >= 30 && $scope.deviceOrientation.gamma<=80)
pos = "LEFT";
if($scope.deviceOrientation.gamma >= -80 && $scope.deviceOrientation.gamma<=-30)
Expand Down

0 comments on commit 9e2d9ac

Please sign in to comment.