Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NodeStartModifying and NodeModified events (Read 2906 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
NodeStartModifying and NodeModified events
Sep 30th, 2015 at 1:19pm
Print Post  
Sometimes if a node is only moved a small distance (a millimeter or two) I get a NodeStartModifing event but no NodeModified event. This is annoying as I start a composite command and hide a link arrow in the NodeStartModifing event handler in preparation for a custom drag and drop operation. Is there any way I can force the NodeModified event to occur?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NodeStartModifying and NodeModified events
Reply #1 - Sep 30th, 2015 at 3:51pm
Print Post  
The operation is cancelled if mouse pointer was moved only a few pixels, in order to avoid incidental modifications if the user only wanted to click. You could detect that from NodeModifyCancelled event handler. You could force it to accept smaller movements by setting diagram.Interaction.MouseMoved to true from NodeStartModifing handler.

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


I love YaBB 1G - SP1!

Posts: 125
Location: England
Joined: Oct 23rd, 2006
Re: NodeStartModifying and NodeModified events
Reply #2 - Sep 30th, 2015 at 5:44pm
Print Post  
Thanks, the "diagram.Interaction.MouseMoved to true" solution worked well.
DavidL
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint