Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
sugarfree

TransformManager and constrainScale qwerk?

Recommended Posts

Hi Jack,

Just wondering if there is a odd behaviour with constrainScale.

 

private var _manager:TransformManager = new TransformManager({ lockRotation:false, bounds:new Rectangle(5, 5, 645, 361), forceSelectionToFront:false, allowDelete:true, autoDeselect:true, handleSize:4, allowMultiSelect:false, ignoreEvents:true} );
var item:TransformItem = _manager.addItem(icon);
item.constrainScale = true;
var item:TransformItem = _manager.addItem(test);
item.constrainScale = false;

 

// both icon and test behave as expected.

 

But change TransformManager to this:

private var _manager:TransformManager = new TransformManager({ constrainScale:true ......});

 

// and test doesn't behave as expected. i.e its constrainScale behaves as though its true (even though set to false).

 

Should this be the expect results?

 

PS: Interestingly, when its false, icon and test behave as expected :-)

i.e

private var _manager:TransformManager = new TransformManager({ constrainScale:false ......});

False cant override true, but true can override false. (odd)

 

-Cheers

C

Link to comment
Share on other sites

  • 2 months later...

Great catch. My apologies for the tardy response. I totally missed this post until today. This should be fixed in the latest version of TransformManager. Snag it in your GreenSock account at https://www.greensock.com/account/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×