Skip to content

Commit a10f651

Browse files
author
Pavel Klimov
committed
fixed anchor events
1 parent 5a860b2 commit a10f651

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;
@@ -131,7 +131,7 @@ export class Anchor<T extends TAnchorProps = TAnchorProps> extends GraphComponen
131131
this.computeRenderSize(this.props.size, true);
132132
break;
133133
}
134-
case "pointerleave": {
134+
case "pointerup": {
135135
this.setState({ raised: false });
136136
this.computeRenderSize(this.props.size, false);
137137
break;

0 commit comments

Comments
 (0)