aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/InkingStroke.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-05-13 21:28:11 -0400
committerbobzel <zzzman@gmail.com>2022-05-13 21:28:11 -0400
commit970e57ab7b9ea50b21dceb1778ada1c1994eca8c (patch)
tree374180535e2489a08a0a10ad4c05e38bb612e4b6 /src/client/views/InkingStroke.tsx
parent21ea42b425946d54eb8a811e10734e714c0164a0 (diff)
fixed erasing overtop of closed curves. fixed outlining of non-closed strokes.
Diffstat (limited to 'src/client/views/InkingStroke.tsx')
-rw-r--r--src/client/views/InkingStroke.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx
index d0f01c363..f97b713dd 100644
--- a/src/client/views/InkingStroke.tsx
+++ b/src/client/views/InkingStroke.tsx
@@ -359,8 +359,8 @@ export class InkingStroke extends ViewBoxBaseComponent<FieldViewProps>() {
}}
{...(!closed ? interactions : {})}
>
- {inkLine}
- {clickableLine(this.onPointerDown)}
+ {closed ? inkLine : clickableLine(this.onPointerDown)}
+ {closed ? clickableLine(this.onPointerDown) : inkLine}
</svg>
{!closed || (!RTFCast(this.rootDoc.text)?.Text && !this.props.isSelected()) ? (null) :
<div className="inkStroke-text" style={{