aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/InkHandles.tsx
diff options
context:
space:
mode:
authorvkalev <vjk1883@gmail.com>2021-07-28 13:14:10 -0400
committervkalev <vjk1883@gmail.com>2021-07-28 13:14:10 -0400
commitea6000690022d43b6bc8e1a546d28729a59faf7b (patch)
tree5b3877022051c0ce82542bed875dbb06ab5e0e2c /src/client/views/InkHandles.tsx
parent16c2a900e9116474caa67e4d5de15e2c51477292 (diff)
snapping broken tangency added
Diffstat (limited to 'src/client/views/InkHandles.tsx')
-rw-r--r--src/client/views/InkHandles.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/InkHandles.tsx b/src/client/views/InkHandles.tsx
index 6e890e184..f1eb4b9db 100644
--- a/src/client/views/InkHandles.tsx
+++ b/src/client/views/InkHandles.tsx
@@ -51,6 +51,7 @@ export class InkHandles extends React.Component<InkHandlesProps> {
onBreakTangent = (e: KeyboardEvent, controlIndex: number) => {
const doc: Doc = this.props.inkDoc;
if (["Alt"].includes(e.key)) {
+ e.stopPropagation();
if (doc) {
const brokenIndices = Cast(doc.brokenInkIndices, listSpec("number")) || new List;
if (brokenIndices && !brokenIndices.includes(controlIndex)) {