From 5511b18432b69942d408ea84defca9d1bde5eb17 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Tue, 1 Oct 2019 14:56:48 -0700 Subject: [PATCH] don't allow the hand with the mini-tablet to trigger opening the tablet --- scripts/system/controllers/controllerModules/stylusInput.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/system/controllers/controllerModules/stylusInput.js b/scripts/system/controllers/controllerModules/stylusInput.js index 544fbb9277..c04edbe085 100644 --- a/scripts/system/controllers/controllerModules/stylusInput.js +++ b/scripts/system/controllers/controllerModules/stylusInput.js @@ -121,7 +121,8 @@ Script.include("/~/system/libraries/controllers.js"); } // Add the mini tablet. - if (HMD.miniTabletScreenID && Overlays.getProperty(HMD.miniTabletScreenID, "visible")) { + if (HMD.miniTabletScreenID && Overlays.getProperty(HMD.miniTabletScreenID, "visible") && + this.hand != HMD.miniTabletHand) { stylusTarget = getOverlayDistance(controllerPosition, HMD.miniTabletScreenID); if (stylusTarget) { stylusTargets.push(stylusTarget);