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

Scale to minimum size from center #43

Open
bedeoverend opened this issue Mar 16, 2017 · 1 comment
Open

Scale to minimum size from center #43

bedeoverend opened this issue Mar 16, 2017 · 1 comment
Assignees
Labels

Comments

@bedeoverend
Copy link
Contributor

If the image is too small to edit, the editor automatically scales up to the minimum size - this just adjusts the height / width of the image, which means it scales from the top left origin point. Instead this should adjust left / top to account for the change in size so it appears it's scaling from the center of the image.

@bedeoverend bedeoverend self-assigned this Mar 16, 2017
@madeleineostoja
Copy link

This should also be smoothly transitioned, which I can tackle once this is fixed (should just be able to apply CSS transforms then reset bounds in next render frame)

@madeleineostoja madeleineostoja changed the title [v1] Scale to minimum size from center Scale to minimum size from center Apr 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants