From 09d5dc382f7a228238b55c17d23c84899eca2d55 Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Mon, 5 Dec 2016 18:08:36 +0000 Subject: [PATCH] better solution --- scripts/system/controllers/handControllerGrab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system/controllers/handControllerGrab.js b/scripts/system/controllers/handControllerGrab.js index b8ac27a80c..b9a735cf59 100644 --- a/scripts/system/controllers/handControllerGrab.js +++ b/scripts/system/controllers/handControllerGrab.js @@ -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(); } };