From c316b836b5fae84546eac15ae74833d31cb1318d Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 14 Sep 2021 15:09:35 -0400 Subject: fixed handle size/placement for ink editing. --- src/client/views/InkControls.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/client/views/InkControls.tsx') diff --git a/src/client/views/InkControls.tsx b/src/client/views/InkControls.tsx index 46377380a..b62239c4f 100644 --- a/src/client/views/InkControls.tsx +++ b/src/client/views/InkControls.tsx @@ -96,8 +96,8 @@ export class InkControls extends React.Component { } } const addedPoints = this.props.addedPoints; - const [left, top, scaleX, scaleY, strokeWidth] = this.props.format; - + const [left, top, scaleX, scaleY, strokeWidth, screenSpaceLineWidth] = this.props.format; + const rectHdlSize = this._overControl === i ? screenSpaceLineWidth * 6 : screenSpaceLineWidth * 4; return ( <> {addedPoints.map((pts, i) => @@ -119,11 +119,11 @@ export class InkControls extends React.Component { {controlPoints.map((control, i) => { this.changeCurrPoint(control.I); -- cgit v1.2.3-70-g09d2