From 3487f0ab2685c6f5f297bd4670cf4c91db00aa39 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 24 Aug 2022 16:48:57 +0530 Subject: [PATCH] Always show extreme points --- src/element/linearElementEditor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/element/linearElementEditor.ts b/src/element/linearElementEditor.ts index ea025eacd..1cae4ad45 100644 --- a/src/element/linearElementEditor.ts +++ b/src/element/linearElementEditor.ts @@ -430,9 +430,10 @@ export class LinearElementEditor { previousPoint[1], ); } + const isExtremePoint = index === 0 || index === element.points.length - 1; if ( appState.editingLinearElement || - element.points.length === 2 || + isExtremePoint || distance >= 2 * LinearElementEditor.POINT_HANDLE_SIZE ) { visiblePointIndexes.push(index);