Skip to content

Commit

Permalink
Add track layer after bar graph foreground and background, see #425
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Jul 13, 2018
1 parent 28c0ed4 commit 10d816d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,6 @@ define( function( require ) {
this.addChild( clearButton.mutate( { left: 5, centerY: trackCreationPanel.centerY } ) );
}

this.addChild( trackLayer );

// Use WebGL where available, but not on IE, due to https://github.com/phetsims/energy-skate-park-basics/issues/277
// and https://github.com/phetsims/scenery/issues/285
var webGLSupported = Util.isWebGLSupported && phet.chipper.queryParameters.webgl;
Expand Down Expand Up @@ -375,6 +373,8 @@ define( function( require ) {
);
this.addChild( this.barGraphForeground );

// add skater and track on top of bar graph (foreground and background) to prevent occlusion
this.addChild( trackLayer );
this.addChild( skaterNode );

var pieChartNode = renderer === 'webgl' ?
Expand Down

0 comments on commit 10d816d

Please sign in to comment.