Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse pointer hovers over a node event not get called. (Read 1112 times)
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
Mouse pointer hovers over a node event not get called.
Apr 13th, 2018 at 8:20am
Print Post  
I need to perform open operation when mouse pointer hovers over a node, for this I have used nodePointed event but it is not working. I have written following code this purpose but this event not get callled.

     private diagram: MindFusion.Diagramming.Diagram;
     this.diagram.addEventListener(Events.nodePointed, (sender, args) => {

         ......
         ....
     }

Please prove some solution for this.
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Mouse pointer hovers over a node event not get called.
Reply #1 - Apr 13th, 2018 at 10:00am
Print Post  
Hi,

The event is raised as expected in my test.

There is a small timeout after the cursor is stationary hovering over a node before the event is fired, so make sure you wait it out.

Another point, mouse events are not raised for the control if it's set to a disabled state (through the diagram.setEnabled(false); property), so also make sure that the diagram is enabled when you want to listen for events.

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