Skip to content

Commit

Permalink
Only show the upNode when it is rotated, see phetsims/axon#215
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Oct 15, 2019
1 parent f26b838 commit cd63e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/Perspective3DNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ define( require => {
this.topFacePath.visible = this.isRotatingProperty.get();
this.sideFacePath.visible = this.isRotatingProperty.get();

// Only show the "top" indicator while rotating
this.upNode.visible = this.isRotatingProperty.get();
// Only show the "top" indicator while rotating, but not while it is exactly at 0 degrees
this.upNode.visible = this.isRotatingProperty.get() && rotationAmount !== 0;

// Position the arrow and text
if ( this.upNode.visible ) {
Expand Down

0 comments on commit cd63e00

Please sign in to comment.