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.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/views/InkControls.tsx b/src/client/views/InkControls.tsx
index da7b0df16..23f22c774 100644
--- a/src/client/views/InkControls.tsx
+++ b/src/client/views/InkControls.tsx
@@ -16,7 +16,6 @@ export interface InkControlProps {
@observer
export class InkControls extends React.Component<InkControlProps> {
- // @observable private _controlPoints: ControlPoint[] = [];
@observable private _overControl = -1;
@observable private _overAddPoint = -1;
@@ -38,10 +37,12 @@ export class InkControls extends React.Component<InkControlProps> {
InkStrokeProperties.Instance?.moveControl(-delta[0] * screenScale, -delta[1] * screenScale, controlIndex);
return false;
},
- () => controlUndo?.end(), action((e: PointerEvent, doubleTap: boolean | undefined) =>
- { if (doubleTap && InkStrokeProperties.Instance?._brokenIndices.includes(controlIndex)) {
- InkStrokeProperties.Instance?.snapHandleTangent(controlIndex, handleIndexA, handleIndexB);
- }}));
+ () => controlUndo?.end(),
+ emptyFunction);
+ // action((e: PointerEvent, doubleTap: boolean | undefined) =>
+ // { if (doubleTap && InkStrokeProperties.Instance?._brokenIndices.includes(controlIndex)) {
+ // InkStrokeProperties.Instance?.snapHandleTangent(controlIndex, handleIndexA, handleIndexB);
+ // }}));
}
}