Skip to content

Commit bf4b1ce

Browse files
author
Pavel Klimov
committed
fixed anchor events
1 parent 8f0f57a commit bf4b1ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/canvas/anchors/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class Anchor<T extends TAnchorProps = TAnchorProps> extends GraphComponen
7171
this.addEventListener("click", this);
7272
this.addEventListener("pointerenter", this);
7373
this.addEventListener("pointerdown", this);
74-
this.addEventListener("pointerleave", this);
74+
this.addEventListener("pointerup", this);
7575

7676
this.computeRenderSize(this.props.size, this.state.raised);
7777
this.shift = this.props.size / 2 + props.lineWidth;
@@ -126,7 +126,7 @@ export class Anchor<T extends TAnchorProps = TAnchorProps> extends GraphComponen
126126
this.computeRenderSize(this.props.size, true);
127127
break;
128128
}
129-
case "pointerleave": {
129+
case "pointerup": {
130130
this.setState({ raised: false });
131131
this.computeRenderSize(this.props.size, false);
132132
break;

0 commit comments

Comments
 (0)