diff options
| author | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-03-17 12:17:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-17 12:17:27 -0400 |
| commit | 5c874c6829d9957696dfe61014173b6800c864df (patch) | |
| tree | 23b7206679d500fc039a4302255cf3d6e17b47d3 /src/client/views/InkControlPtHandles.tsx | |
| parent | a299d1766aa7f4bf3e6bbc3032a39b6b5ae28b4b (diff) | |
| parent | 5a385e46937a2f79d557b4ee929e78ba78aca8bf (diff) | |
Merge pull request #55 from brown-dash/speedups2
Speedups2
Diffstat (limited to 'src/client/views/InkControlPtHandles.tsx')
| -rw-r--r-- | src/client/views/InkControlPtHandles.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
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<InkControlProps> { 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[]) => { |
