Skip to content

Commit

Permalink
fix uses of Bounds2 dilated, #181
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jul 22, 2020
1 parent 1cc7bab commit a924829
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/common/view/graph/ZoomButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class ZoomButtonGroup extends HBox {
} );

// expand touch areas
zoomOutButton.touchArea = zoomOutButton.localBounds.dilated( 5, 5 );
zoomInButton.touchArea = zoomOutButton.localBounds.dilated( 5, 5 );
zoomOutButton.touchArea = zoomOutButton.localBounds.dilated( 5 );
zoomInButton.touchArea = zoomOutButton.localBounds.dilated( 5 );

assert && assert( !options.children, 'ZoomButtonGroup sets children' );
options.children = [ zoomOutButton, zoomInButton ];
Expand Down
2 changes: 1 addition & 1 deletion js/macro/view/MacroPHMeterNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class PHProbeNode extends ProbeNode {
} );

// touch area
this.touchArea = this.localBounds.dilated( 20, 20 );
this.touchArea = this.localBounds.dilated( 20 );

// drag listener
this.addInputListener( new DragListener( {
Expand Down

0 comments on commit a924829

Please sign in to comment.