aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/InkStrokeProperties.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-05-08 11:33:20 -0400
committerbobzel <zzzman@gmail.com>2021-05-08 11:33:20 -0400
commit47006b0025ae9ea13313900124ca097227be50a2 (patch)
treea0b5098fb855a5f6c0ee889e06e1c3958b2dc929 /src/client/views/InkStrokeProperties.ts
parent62f143a6daf4e396ef031cfae70150fc122a0ecc (diff)
fixed deleting ink stroke points.
Diffstat (limited to 'src/client/views/InkStrokeProperties.ts')
-rw-r--r--src/client/views/InkStrokeProperties.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/InkStrokeProperties.ts b/src/client/views/InkStrokeProperties.ts
index 358cce35b..5cbfa65cd 100644
--- a/src/client/views/InkStrokeProperties.ts
+++ b/src/client/views/InkStrokeProperties.ts
@@ -117,6 +117,7 @@ export class InkStrokeProperties {
@undoBatch
@action
deletePoints = () => {
+ var deleted = false;
this.selectedInk?.forEach(action(inkView => {
if (this.selectedInk?.length === 1 && this._currPoint !== -1) {
const doc = Document(inkView.rootDoc);
@@ -141,10 +142,12 @@ export class InkStrokeProperties {
Doc.GetProto(doc).data = new InkField(newerPoints);
}
+ deleted = true;
}
}
}
}));
+ return deleted;
}
@undoBatch