Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NodeClicked gets fired on a delay (Read 1516 times)
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
NodeClicked gets fired on a delay
Dec 1st, 2010 at 10:15am
Print Post  
Hi,

I have mailed you a sample on which i am getting a delay of ~0.08s to ~0.1s to get the nodeclicked event, the delay is measure from diagram previewmousedown to nodeclicked. You need to right click on any node to see the delay.

Please let me know what can we do in the sample  to optimize this so that nodeclicked gets fire immediately.

Thanks,
Bala

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeClicked gets fired on a delay
Reply #1 - Dec 1st, 2010 at 1:11pm
Print Post  
Hi,

NodeClicked is similar to the Click event of buttons and is raised when the mouse button is released, i.e. upon a mouse-up event. If you hold down the mouse button long enough, it can take many seconds from PreviewMouseDown to NodeClicked. If it's that important to react immediately on the button-down event, handle PreviewMouseDown and call GetNodeAt to find the node under the mouse pointer.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Re: NodeClicked gets fired on a delay
Reply #2 - Dec 2nd, 2010 at 9:31am
Print Post  
Thanks for the reply.

Yes we realized this and did our stuff on PreviewMouse event.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint