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

Gestures change origin to center,center #2478

Closed
nibynool opened this issue Sep 15, 2015 · 0 comments
Closed

Gestures change origin to center,center #2478

nibynool opened this issue Sep 15, 2015 · 0 comments

Comments

@nibynool
Copy link

I am currently using the canvas.toJSON() function to export my canvas to a server side rendering system and I have noticed that after performing a gesture (zoom or rotate) the origin is always changes from top,left to center,center.

I believe this is caused by the _setOriginToCenter() function call within __gesturesRenderer() in the canvas_gestures mixin.

From my limited testing it seems that the origin can be reset by calling _setCenterToOrigin() just prior to the call to renderAll().

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

No branches or pull requests

1 participant