aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/InkControls.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/InkControls.tsx')
-rw-r--r--src/client/views/InkControls.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/views/InkControls.tsx b/src/client/views/InkControls.tsx
index 5fe0c0f8a..ee09273e3 100644
--- a/src/client/views/InkControls.tsx
+++ b/src/client/views/InkControls.tsx
@@ -90,7 +90,6 @@ export class InkControls extends React.Component<InkControlProps> {
const formatInstance = InkStrokeProperties.Instance;
if (!formatInstance) return (null);
-
// Accessing the current ink's data and extracting all control points.
const scrData = this.props.screenCtrlPoints;
const sreenCtrlPoints: ControlPoint[] = [];
@@ -111,12 +110,10 @@ export class InkControls extends React.Component<InkControlProps> {
const nearestScreenPt = this.props.nearestScreenPt();
return (<svg>
- {/* should really have just one circle here that represents the neqraest point on the stroke to the users hover point.
- This points should be passed as a prop from InkingStroke's UI which should set it in its onPointerOver method */}
{!nearestScreenPt ? (null) :
<circle key={"npt"}
- cx={(nearestScreenPt.X - left - strokeWidth / 2) * scaleX + strokeWidth / 2}
- cy={(nearestScreenPt.Y - top - strokeWidth / 2) * scaleY + strokeWidth / 2}
+ cx={nearestScreenPt.X}
+ cy={nearestScreenPt.Y}
r={screenSpaceLineWidth * 4}
fill={"#00007777"}
stroke={"#00007777"}