Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NodePointed event fired after a delay (Read 1430 times)
VM
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Nov 7th, 2018
NodePointed event fired after a delay
Dec 13th, 2018 at 5:27pm
Print Post  
Hello,

I am trying to turn the cursor to hand when the mouse is over a table cell. I subscribed to NodePointed event. It gets fired after a significant delay (1sec +).

The event handler code:
                 if(e.Node is TableNode)
                 {
                       TableNode table = e.Node as TableNode;
                       int row = -1;
                       int col = -1;
                       table.CellFromPoint(e.MousePosition, ref row, ref col);
                       if(col == 1)
                       {
                             Cursor.Current = Cursors.Hand;
                       }
                 }

Any suggestions,


Thank you in advance,
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3343
Joined: Oct 19th, 2005
Re: NodePointed event fired after a delay
Reply #1 - Dec 14th, 2018 at 1:12pm
Print Post  
Hi,

It's raised after the mouse pointer rests for 800ms over a node. If you need to detect it immediately, call GetNodeAt from MouseMove handler. E.g. see example here -

https://mindfusion.eu/Forum/YaBB.pl?num=1357667823/1#1

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