Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node MouseDown MouseUp events (Read 1825 times)
billcollis
YaBB Newbies
*
Offline


I love mindfusion

Posts: 19
Location: Auckland, NZ
Joined: Jun 4th, 2011
Node MouseDown MouseUp events
Sep 15th, 2016 at 6:36am
Print Post  
Hi
How would I implement mouseDown/mouseUp events on a node?
thanks
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Node MouseDown MouseUp events
Reply #1 - Sep 15th, 2016 at 8:52am
Print Post  
Hi,

There's a nodeClicked event raised for clicks. If you need separate handling for down and up, you'd have to handle the canvas' events, convert MouseEvent coordinates to diagram ones (see http://mindfusion.eu/Forum/YaBB.pl?num=1467929056/5#5) and then call diagram.getNodeAt(diagPoint) to find out if there's a node at that location.

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