[title] revise threshold value for triggering sound because of emulator virtual senso...
[samples/web/DeviceMotionCapture.git] / 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();