don't allow the hand with the mini-tablet to trigger opening the tablet

This commit is contained in:
Seth Alves 2019-10-01 14:56:48 -07:00
parent fa4d055ab1
commit 5511b18432

View file

@ -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);