Skip to content

Commit

Permalink
pointer area dilation for Generation controls in graphs, #192
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Sep 1, 2020
1 parent 27b651f commit 767ebf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/common/NaturalSelectionConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ const NaturalSelectionConstants = {
xMargin: 6,
yMargin: 4,
touchAreaXDilation: 10,
touchAreaYDilation: 6
touchAreaYDilation: 6,
mouseAreaXDilation: 5,
mouseAreaYDilation: 3
},

// Checkbox
Expand Down
4 changes: 4 additions & 0 deletions js/common/view/proportions/ProportionsGenerationSpinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ class ProportionsGenerationSpinner extends NumberSpinner {
// NumberSpinner options
xSpacing: 10,
arrowsPosition: 'leftRight',
touchAreaXDilation: 20,
touchAreaYDilation: 10,
mouseAreaXDilation: 10,
mouseAreaYDilation: 5,
numberDisplayOptions: {
valuePattern: naturalSelectionStrings.generationValue,
align: 'center',
Expand Down

0 comments on commit 767ebf6

Please sign in to comment.