You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to use this library to make a free-transform controlled component that preserves aspect ratio only when scaled from the corners (tr, tl, br, bl)...
My settings for the scale function look like this:
preseveAspectRatio is sent true if scaleType is any of the corners
Issue:
Scaling still doesn't preserve aspect ratio except if shift key is pressed
the aspectRatio field seems to have no effect at all on the outcome. Also, after reviewing the source of scale.js I can't seem to understand this:
Yes, I have the same problem! When "aspect" is set to true, it does not work.I try to modify the source code.
There is a logic error in line 97 of the scale. js file:
Hello,
I'm trying to use this library to make a free-transform controlled component that preserves aspect ratio only when scaled from the corners (tr, tl, br, bl)...
My settings for the scale function look like this:
preseveAspectRatio is sent true if scaleType is any of the corners
Issue:
Scaling still doesn't preserve aspect ratio except if shift key is pressed
the aspectRatio field seems to have no effect at all on the outcome. Also, after reviewing the source of scale.js I can't seem to understand this:
The value of aspectRatio seems to be tied to event.shiftKey which makes it kind of neglected?
The text was updated successfully, but these errors were encountered: