mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:54:25 +02:00
don't allow the hand with the mini-tablet to trigger opening the tablet
This commit is contained in:
parent
fa4d055ab1
commit
5511b18432
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue