mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 14:13:47 +02:00
better solution
This commit is contained in:
parent
1b24d373d2
commit
09d5dc382f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue