79463233

Date: 2025-02-24 10:47:54
Score: 0.5
Natty:
Report link

You should use the element:contextmenu event instead: https://docs.jointjs.com/api/dia/Paper/#contextmenu

So, in your case:

this.paper.on('element:contextmenu', (elementView: any, event: MouseEvent) => {
    console.log("2");
    event.preventDefault();
    this.startEdgeCreation(elementView.model, event);
});
Reasons:
  • Whitelisted phrase (-1): in your case
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jaytibann