mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:43:45 +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.
|
// 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);
|
stylusTarget = getOverlayDistance(controllerPosition, HMD.miniTabletScreenID);
|
||||||
if (stylusTarget) {
|
if (stylusTarget) {
|
||||||
stylusTargets.push(stylusTarget);
|
stylusTargets.push(stylusTarget);
|
||||||
|
|
Loading…
Reference in a new issue