increase interval before ratio kicks can happen again
This commit is contained in:
parent
493a89ad7f
commit
fe007c0dca
1 changed files with 1 additions and 1 deletions
2
vendor/dancer.js
vendored
2
vendor/dancer.js
vendored
|
|
@ -342,7 +342,7 @@
|
||||||
var self = this;
|
var self = this;
|
||||||
this.canUseRatioHandle = setTimeout(function(){
|
this.canUseRatioHandle = setTimeout(function(){
|
||||||
self.canUseRatio = true;
|
self.canUseRatio = true;
|
||||||
}, 2000);
|
}, 5000);
|
||||||
} else {
|
} else {
|
||||||
if(magnitude/this.previousMag > this.threshold*5 && magnitude>0.1 && this.canUseRatio) {
|
if(magnitude/this.previousMag > this.threshold*5 && magnitude>0.1 && this.canUseRatio) {
|
||||||
this.onKick && this.onKick.call(this.dancer, magnitude, magnitude/this.previousMag);
|
this.onKick && this.onKick.call(this.dancer, magnitude, magnitude/this.previousMag);
|
||||||
|
|
|
||||||
Reference in a new issue