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

fabric.Group.addWithUpdate() re-applies transform matrix to existing group objects #833

Closed
lorenzopolidori opened this issue Sep 11, 2013 · 3 comments · Fixed by #2549
Closed
Assignees
Labels

Comments

@lorenzopolidori
Copy link
Contributor

When using fabric.Group.addWithUpdate() to add existing canvas objects to a group on which some transformations have been applied, the same transformation matrix is applied again on the existing group objects, resulting in a double rotation and scaling.

This behavior can be reproduced using this jsFiddle - just click on the group first two button and then on the group third one.

I suppose the correct behavior is to apply the group transformation only to the object added last and leave the existing ones untouched.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@kangax
Copy link
Member

kangax commented Sep 27, 2013

@Kienz please take a look if you have a chance. Thanks!

@ghost
Copy link

ghost commented Oct 17, 2013

Is there any known work around to this problem?

@asturur
Copy link
Member

asturur commented Oct 18, 2015

http://jsfiddle.net/cjUdb/3/ see updated fiddle for solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants