aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-28 14:38:35 -0400
committerbobzel <zzzman@gmail.com>2021-09-28 14:38:35 -0400
commit84ebdbe652fb38fb16a02c294739b5a26365d12b (patch)
tree17608e60dd0f4b1d28695705530ee6d98491e95c
parent4dd8a5a4110106a607156d20b5315f28e8a2c163 (diff)
fixed double click to edit curve.
-rw-r--r--src/client/views/InkingStroke.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx
index 60dc7b9f7..83fe04893 100644
--- a/src/client/views/InkingStroke.tsx
+++ b/src/client/views/InkingStroke.tsx
@@ -83,11 +83,10 @@ export class InkingStroke extends ViewBoxBaseComponent<FieldViewProps, InkDocume
this._properties._controlButton = true;
InkStrokeProperties.Instance && (InkStrokeProperties.Instance._currentPoint = -1);
this._handledClick = true; // mark the double-click pseudo pointerevent so we can block the real mouse event from propagating to DocumentView
+ } else {
+ if (this._properties?._controlButton) this._nearestT && this._nearestSeg !== undefined && InkStrokeProperties.Instance?.addPoints(this._nearestT, this._nearestSeg, this.inkScaledData().inkData);
}
- }), this._properties?._controlButton, this._properties?._controlButton,
- () => {
- this._nearestT && this._nearestSeg !== undefined && InkStrokeProperties.Instance?.addPoints(this._nearestT, this._nearestSeg, this.inkScaledData().inkData);
- }
+ }), this._properties?._controlButton, this._properties?._controlButton
);
}
}