Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Question about behavior class (Read 1471 times)
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
Question about behavior class
Jul 24th, 2013 at 12:13am
Print Post  
hi
I asked some questions about how to implement custom behavior class. So far it almost can work well. But today I find new problem.

I define my own behavior class, then catch NodeModified event, Cancel event in my class. Also when user try to move a shape, my code will insert a tracker node, actually user operate this node to show where the user's node will be at. In most cases it can work well.

But if use just move 1 pixel, then Cancel event will be called. If move 3 pixel ore more NodeModified event will be called. That's why? and how to solve this problem?

Thanks a lot
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Question about behavior class
Reply #1 - Jul 24th, 2013 at 7:59am
Print Post  
Hi,

Set MinimumNodeSize to a small value, e.g. something like SizeF(0.01, 0.01).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint