fix(ui): do not delete point on right-mouse click

This commit is contained in:
psychedelicious
2024-10-25 08:04:06 +10:00
parent e5b78d0221
commit ab7cdbb7e0

View File

@@ -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();