Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Got an error while collapsing (Read 7359 times)
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Got an error while collapsing
Reply #15 - Aug 10th, 2017 at 6:47am
Print Post  
Hi,

You could try raising the nodeClicked yourself from the digaram mouseup handler. This worked for me in the test project:

Code (Javascript)
Select All
onDiagramMouseUp(event) {
  this.diagram.setEnabled(true);
  const node = this.getNodeUnderCursor(event);
  if (node) {
    const localPoint = this.getLocalPoint(event);
    const manipulator = node.hitTestManipulators(localPoint);
    if (manipulator !== null) {
      return;
    }
    const args = new MindFusion.Diagramming.NodeEventArgs({ node: node, mousePosition: localPoint, mouseButton: event.button });
    const handler = MindFusion.AbstractionLayer.getHandler(this.diagram, "nodeClicked");
    if (handler != null) {
      handler(this.diagram, args);
    }
  }
} 



Regards,
Lyubo
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint