Skip to content

Commit

Permalink
Condense predictMeanNode line touch area, see: #40
Browse files Browse the repository at this point in the history
  • Loading branch information
marlitas committed Jun 23, 2022
1 parent 99f72c5 commit fdf38ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/intro/view/PredictMeanNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class PredictMeanNode extends AccessibleSlider( Node, 0 ) {

private setPointerAreas(): void {
this.predictMeanLine.mouseArea = this.predictMeanLine.localBounds.dilated( MeanShareAndBalanceConstants.MOUSE_DILATION );
this.predictMeanLine.touchArea = this.predictMeanLine.localBounds.dilated( MeanShareAndBalanceConstants.TOUCH_DILATION );
this.predictMeanLine.touchArea = this.predictMeanLine.mouseArea;
this.predictMeanHandle.mouseArea = this.predictMeanHandle.localBounds.dilated( MeanShareAndBalanceConstants.MOUSE_DILATION );
this.predictMeanHandle.touchArea = this.predictMeanHandle.localBounds.dilated( MeanShareAndBalanceConstants.TOUCH_DILATION );
}
Expand Down

0 comments on commit fdf38ba

Please sign in to comment.