increase interval before ratio kicks can happen again

This commit is contained in:
lone-cloud 2015-11-09 23:31:36 -08:00
parent 493a89ad7f
commit fe007c0dca

2
vendor/dancer.js vendored
View file

@ -342,7 +342,7 @@
var self = this;
this.canUseRatioHandle = setTimeout(function(){
self.canUseRatio = true;
}, 2000);
}, 5000);
} else {
if(magnitude/this.previousMag > this.threshold*5 && magnitude>0.1 && this.canUseRatio) {
this.onKick && this.onKick.call(this.dancer, magnitude, magnitude/this.previousMag);