Skip to content

Commit

Permalink
reduce size of TimeControlNode push buttons, see #240
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Apr 2, 2020
1 parent 02c6448 commit 86d1fac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/energy-skate-park/common/view/EnergySkateParkScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,17 +364,16 @@ class EnergySkateParkScreenView extends ScreenView {
} );

// play/pause and step buttons are same size until playingProperty is false
const buttonRadius = 18;
this.timeControlNode = new TimeControlNode( playingProperty, {
tandem: tandem.createTandem( 'timeControlNode' ),
timeControlSpeedProperty: model.timeControlSpeedProperty,
buttonGroupXSpacing: 19, // extra spacing avoids pointer area overlap when play pause button size increases
playPauseStepButtonOptions: {
playPauseButtonOptions: {
radius: buttonRadius
radius: 18
},
stepForwardButtonOptions: {
radius: buttonRadius,
radius: 13,
listener: model.manualStep.bind( model )
}
}
Expand Down

0 comments on commit 86d1fac

Please sign in to comment.