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 | var hudRayPick = controllerData.hudRayPicks[this.hand]; | 179 | var hudRayPick = controllerData.hudRayPicks[this.hand]; |
| 180 | var point2d = this.calculateNewReticlePosition(hudRayPick.intersection); | 180 | var point2d = this.calculateNewReticlePosition(hudRayPick.intersection); |
| 181 | this.setReticlePosition(point2d); | 181 | if (!Window.isPointOnDesktopWindow(point2d)) { |
| 182 | if (!Reticle.isPointingAtSystemOverlay(point2d)) { | ||
| 183 | this.exitModule(); | 182 | this.exitModule(); |
| 184 | return false; | 183 | return false; |
| 185 | } | 184 | } |
| 185 | this.setReticlePosition(point2d); | ||
| 186 | Reticle.visible = false; | 186 | Reticle.visible = false; |
| 187 | this.movedAway = false; | 187 | this.movedAway = false; |
| 188 | this.triggerClicked = controllerData.triggerClicks[this.hand]; | 188 | this.triggerClicked = controllerData.triggerClicks[this.hand]; |