[Title] revise to solve sound issue of this app 2.2_release
authorJoonghun Park <jh718.park@samsung.com>
Wed, 3 Jul 2013 12:17:47 +0000 (21:17 +0900)
committerJoonghun Park <jh718.park@samsung.com>
Wed, 3 Jul 2013 12:21:24 +0000 (21:21 +0900)
[issue#]N_SE-44578
[problem] Sound does not hear at some times
[Solution] adding javascript code to sense the acceleration in every direction

Change-Id: I0c5b537133a7ed5a98d68398226453eb4205e626

js/main.js

index 3a26d70..c301630 100755 (executable)
@@ -50,7 +50,7 @@ function deviceMotionEvents() {
 }
 
         function playSoundHandler(e) {
-                if(e.acceleration.x > 6){
+                if(e.acceleration.x > 7 || e.acceleration.y > 7 || e.acceleration.x < -7 || e.acceleration.y < -7){
                         audioElem.currentTime = 0;
                         audioElem.volume=1;
                         audioElem.play();