From 4dd8a5a4110106a607156d20b5315f28e8a2c163 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 28 Sep 2021 14:31:19 -0400 Subject: only hover ink if its selected --- src/client/views/InkingStroke.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx index efe2e5f66..60dc7b9f7 100644 --- a/src/client/views/InkingStroke.tsx +++ b/src/client/views/InkingStroke.tsx @@ -83,10 +83,11 @@ export class InkingStroke extends ViewBoxBaseComponent { + this._nearestT && this._nearestSeg !== undefined && InkStrokeProperties.Instance?.addPoints(this._nearestT, this._nearestSeg, this.inkScaledData().inkData); + } ); } } @@ -236,7 +237,7 @@ export class InkingStroke extends ViewBoxBaseComponent this._nearestScrPt = undefined )} - onPointerMove={this.onPointerOver} + onPointerMove={this.props.isSelected() ? this.onPointerOver : undefined} onPointerDown={this.onPointerDown} onClick={this.onClick} onContextMenu={() => { -- cgit v1.2.3-70-g09d2