Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram.NodeClicked not raised when mouse is moving (Read 3896 times)
tjugg
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 20th, 2017
Diagram.NodeClicked not raised when mouse is moving
Mar 22nd, 2018 at 12:48pm
Print Post  
Hi,

When I move the mouse cursor on the diagram and try to click, it seems that the Diagram.NodeClicked event is not raised at all. It works fine when the mouse is somewhat still. Any ideas what could be causing this?

// t
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Diagram.NodeClicked not raised when mouse is moving
Reply #1 - Mar 23rd, 2018 at 6:16am
Print Post  
Hi,

Indeed, the control raises click events only if the mouse hasn't moved more than couple of pixels. That's on purpose, otherwise it starts drawing new items or selection lasso and doesn't consider it a click anymore. If you still want to detect it, you could call GetNodeAt from diagram.MouseDown event handler.

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