Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fabric.controlsUtils): stabilize scaleObject function #6540

Merged
merged 1 commit into from
Aug 23, 2020

Conversation

asturur
Copy link
Member

@asturur asturur commented Aug 23, 2020

closes #6528

There were two issues with center based scaling from one side only.

First of all we did not define an opposite origin for the center origin, resulting in a swapped origin undefined and wrapWithFIxedAnchor returning NaN coordinates.

On top of that, human mouse movements on a centered originated scaling from a side only, would often cross the origin point, creating a flip of the scale, and producing, once the NaN problem was fixed, potentially unwanted coordinates flips.

@asturur asturur merged commit 69daa21 into master Aug 23, 2020
@asturur asturur mentioned this pull request Aug 23, 2020
shanicerae pushed a commit to shanicerae/fabric.js that referenced this pull request Jan 16, 2021
@asturur asturur deleted the ISSUE-6528-scaling-flip-crazyness branch January 16, 2021 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OriginX Center Resizing Issue - v4.0.0
1 participant