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

Zoom reset the image position #5

Open
Nysosis opened this issue Apr 3, 2018 · 0 comments
Open

Zoom reset the image position #5

Nysosis opened this issue Apr 3, 2018 · 0 comments

Comments

@Nysosis
Copy link

Nysosis commented Apr 3, 2018

Same as issue on the non-jquery version, persit panned location on zoom changes.

Nysosis added a commit to Nysosis/lg-zoom that referenced this issue Apr 3, 2018
Changed the transform origin of the image to be positioned on the centre of the image.

This means that the panned to X/Y positions are easier to calcualate the necessary delta to maintain the same position.
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