Skip to content

Commit

Permalink
fix(ui): do not delete point on right-mouse click
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Oct 24, 2024
1 parent 6d88287 commit 7002359
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ export class CanvasSegmentAnythingModule extends CanvasModuleBase {
if (this.$isDraggingPoint.get()) {
return;
}
if (e.evt.button !== 0) {
return;
}
// This event should not bubble up to the parent, stage or any other nodes
e.cancelBubble = true;
circle.destroy();
Expand Down

0 comments on commit 7002359

Please sign in to comment.