Showing the changes to scripts/system/controllers/controllerModules (1 of 6 files). Show all
Unified · Split
| @@ -178,11 +178,11 @@ · 177 unmodified lines | ||
| 178 | 178 | } |
| 179 | 179 | var hudRayPick = controllerData.hudRayPicks[this.hand]; |
| 180 | 180 | var point2d = this.calculateNewReticlePosition(hudRayPick.intersection); |
| 181 | − this.setReticlePosition(point2d); | |
| 182 | − if (!Reticle.isPointingAtSystemOverlay(point2d)) { | |
| 181 | + if (!Window.isPointOnDesktopWindow(point2d)) { | |
| 183 | 182 | this.exitModule(); |
| 184 | 183 | return false; |
| 185 | 184 | } |
| 185 | + this.setReticlePosition(point2d); | |
| 186 | 186 | Reticle.visible = false; |
| 187 | 187 | this.movedAway = false; |
| 188 | 188 | this.triggerClicked = controllerData.triggerClicks[this.hand]; |