[title] revise threshold value for triggering sound because of emulator virtual senso...
authorJoonghun Park <jh718.park@samsung.com>
Fri, 6 Sep 2013 13:50:29 +0000 (22:50 +0900)
committerJoonghun Park <jh718.park@samsung.com>
Fri, 6 Sep 2013 13:51:20 +0000 (22:51 +0900)
[issue#] N_SE-51440
[problem] because of the virtual emulator sensor operation configuration, this issue is inevitable
[solve] revise threshold values to make a detour

Change-Id: I630a57d67338449ba6151703c663ec306598ed3e

js/main.js

index 6789568..97292b2 100755 (executable)
@@ -50,7 +50,7 @@ function deviceMotionEvents() {
 }
 
         function playSoundHandler(e) {
-                if(e.acceleration.x > 7 || e.acceleration.y > 7 || e.acceleration.x < -7 || e.acceleration.y < -7){
+                if(e.acceleration.x > 6.2 || e.acceleration.y > 6.3 || e.acceleration.x < -6.2 || e.acceleration.y < -6.2){
                         audioElem.currentTime = 0;
                         audioElem.volume=1;
                         audioElem.play();