From 875129a9aa241d595aee9d2c0a679acd71bfd0d1 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 10 Mar 2022 14:11:09 -0500 Subject: fixed bug where ink stroke would become degenerate if on control point were selected with tangent handles but another control point were dragged. --- src/client/views/InkControlPtHandles.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/views/InkControlPtHandles.tsx') diff --git a/src/client/views/InkControlPtHandles.tsx b/src/client/views/InkControlPtHandles.tsx index 24f796105..a7f511ab4 100644 --- a/src/client/views/InkControlPtHandles.tsx +++ b/src/client/views/InkControlPtHandles.tsx @@ -51,6 +51,7 @@ export class InkControlPtHandles extends React.Component { const handleIndexB = (order === 3 ? controlIndex + 2 : controlIndex + 1) % this.props.inkCtrlPoints.length; const brokenIndices = Cast(this.props.inkDoc.brokenInkIndices, listSpec("number")); const wasSelected = InkStrokeProperties.Instance._currentPoint === controlIndex; + if (!wasSelected) InkStrokeProperties.Instance._currentPoint = -1; const origInk = this.props.inkCtrlPoints.slice(); setupMoveUpEvents(this, e, action((e: PointerEvent, down: number[], delta: number[]) => { -- cgit v1.2.3-70-g09d2