Skip to content

Commit

Permalink
Merge pull request #1241 from mozilla/bug/982
Browse files Browse the repository at this point in the history
Fix bug where your cursor disappears in 2D mode
  • Loading branch information
johnshaughnessy authored Apr 19, 2019
2 parents 1406840 + d181c41 commit 8c3c65d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/systems/interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ AFRAME.registerSystem("interaction", {
this.rightHandTeleporter || document.querySelector("#player-right-controller").components["teleporter"];
this.gazeTeleporter = this.gazeTeleporter || document.querySelector("#gaze-teleport").components["teleporter"];

this.tickInteractor(this.options.leftHand, this.state.leftHand);
if (!this.state.rightRemote.held) {
if (this.options.leftHand.entity.object3D.visible) {
this.tickInteractor(this.options.leftHand, this.state.leftHand);
}
if (this.options.rightHand.entity.object3D.visible && !this.state.rightRemote.held) {
this.tickInteractor(this.options.rightHand, this.state.rightHand);
}

Expand Down

0 comments on commit 8c3c65d

Please sign in to comment.