better solution

This commit is contained in:
Dante Ruiz 2016-12-05 18:08:36 +00:00
parent 1b24d373d2
commit 09d5dc382f

View file

@ -1012,7 +1012,7 @@ function MyController(hand) {
// The value to check if we will allow the release function to be called
var allowReleaseValue = 0.1;
if (value > 0 && _this.rawTriggerValue <= allowReleaseValue) {
if (value > 0 && _this.state == STATE_HOLD) {
_this.release();
}
};