Jump to content
GreenSock

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

Padding for text item selection

Recommended Posts

Hi Jack

 

I was wondering if you knew of an elagant way to increase the padding selection for a transformItem that has selectable text.

 

Just the way you have it for paddingForRotation would be so handy !

 

Thanks

Link to comment
Share on other sites

That isn't something I thought anyone would really want to change, but you can edit line 1400 and replace the "10" with whatever thickness you want:

 

_edges.graphics.lineStyle(10, 0xFF0000, 0, false, "none");

  • Like 1
Link to comment
Share on other sites

Great !

The demand originated from an user, and it does make sense in my scenario :

 

User has abitilty to zoom in on the textitem, but the line thickness isn't increased, resulting in a small rollover area...

For a selectable text, the noob user could indeed have trouble picking the movable area

 

It could also be of interest for mobile use ...

 

Thanks for the tip!

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.
×