Skip to content

Commit

Permalink
Renamed touch area constants and added mouse area dilations in NLChec…
Browse files Browse the repository at this point in the history
  • Loading branch information
marlitas committed Dec 12, 2023
1 parent f561626 commit 5795e6e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/common/view/NLCheckbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import numberLineCommon from '../../numberLineCommon.js';

// constants
const BOX_WIDTH = 17;
const TOUCH_AREA_DILATION = 5;
const POINTER_AREA_DILATION = 5;

class NLCheckbox extends Checkbox {

Expand All @@ -34,8 +34,10 @@ class NLCheckbox extends Checkbox {
maxWidth: 200
},
isDisposable: false,
touchAreaXDilation: TOUCH_AREA_DILATION,
touchAreaYDilation: TOUCH_AREA_DILATION
touchAreaXDilation: POINTER_AREA_DILATION,
touchAreaYDilation: POINTER_AREA_DILATION,
mouseAreaXDilation: POINTER_AREA_DILATION,
mouseAreaYDilation: POINTER_AREA_DILATION
}, options );

const content = new Text( contentStringProperty, options.textOptions );
Expand Down

0 comments on commit 5795e6e

Please sign in to comment.