Jump to content
Search Community

Get Handle Pressed?

mscharp test
Moderator Tag

Recommended Posts

Is it possible to get the handle that is pressed? The reason I'm asking is because in the site I'm building I want to maintain the aspect ratio of the image if the user is resizing via any corner handle. If the user is resizing via any of the side handles (stretchH or stretchV) I do not want to constrain the dimensions.

 

Is this something that is currently doable, or something that could be added in the near future?

 

Thanks!

Link to comment
Share on other sites

You could add a custom dispatchEvent() call inside onPressScale() and onPressStretchH() and onPressStretchV() to distinguish between the various types of handle presses. onPressScale() gets called when any of the corner scale handles are pressed, and onPressStretchH() gets called when one of the horizontally-stretching handles is pressed, and same for the onPressStretchV() method (for vertical handles of course).

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.
×
×
  • Create New...