Skip to content

Commit

Permalink
Gave zoom buttons asymmetric touch dilations
Browse files Browse the repository at this point in the history
See #243
  • Loading branch information
Saurabh Totey authored and Saurabh Totey committed Jul 1, 2019
1 parent e4a94f2 commit f30110f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions js/atomic-interactions/view/ZoomableGridNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ define( function( require ) {
xMargin: 3,
yMargin: 3,
disabledBaseColor: '#EDEDED',
buttonAppearanceStrategy: RectangularButtonView.FlatAppearanceStrategy
buttonAppearanceStrategy: RectangularButtonView.FlatAppearanceStrategy,
touchAreaXDilation: 10,
touchAreaYDilation: 8,
touchAreaYShift: -7
} );
this.zoomInButton.enabled = false;

Expand All @@ -82,7 +85,10 @@ define( function( require ) {
yMargin: 3,
disabledBaseColor: '#EDEDED',
buttonAppearanceStrategy: RectangularButtonView.FlatAppearanceStrategy,
in: false
in: false,
touchAreaXDilation: 10,
touchAreaYDilation: 8,
touchAreaYShift: 7
} );
this.zoomOutButton.enabled = true;
this.addChild( this.zoomInButton );
Expand Down

0 comments on commit f30110f

Please sign in to comment.