Skip to content

Commit

Permalink
Move the proportional drag handle in front of the area and border, see
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Dec 18, 2018
1 parent 07f31df commit 81283b1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions js/proportional/view/ProportionalAreaDisplayNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,6 @@ define( function( require ) {
this.areaLayer.addChild( gridLinesNode );
options.gridLinesVisibleProperty.linkAttribute( gridLinesNode, 'visible' );

// Active area drag handle
this.areaLayer.addChild( new ProportionalDragHandle(
areaDisplay.areaProperty,
areaDisplay.activeTotalProperties,
this.modelViewTransformProperty
) );

// Active area background
var activeAreaBackground = new Rectangle( {
fill: options.useTileLikeBackground
Expand Down Expand Up @@ -141,6 +134,13 @@ define( function( require ) {
// Background stroke
this.areaLayer.addChild( this.borderNode );

// Active area drag handle
this.areaLayer.addChild( new ProportionalDragHandle(
areaDisplay.areaProperty,
areaDisplay.activeTotalProperties,
this.modelViewTransformProperty
) );

var countingVisibleProperty = new DerivedProperty(
[ areaDisplay.countingAvailableProperty, options.countingVisibleProperty ],
function( countingAvailable, countingVisible ) {
Expand Down

0 comments on commit 81283b1

Please sign in to comment.