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

Improper zoom cursor calculation on ROTATED images #56

Closed
rendlp opened this issue Feb 25, 2020 · 1 comment
Closed

Improper zoom cursor calculation on ROTATED images #56

rendlp opened this issue Feb 25, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@rendlp
Copy link

rendlp commented Feb 25, 2020

When image is rotated and the user zooms, cursor calculation rotates with image, causing improper cursor calculation.

ex. Image is rotated 180 degrees, cursor calculation is flipped 180 degrees. Moving mouse UP on a 180 degree rotated image will move the cursor DOWN.

I believe this issue is related to the setZoomPosition() function.

@rendlp rendlp changed the title Improper cursor calculation on ROTATED images Improper zoom cursor calculation on ROTATED images Feb 25, 2020
@wittlock
Copy link
Owner

I do think I know what the problem is but I'm still pondering a good approach to fix it. Could you maybe share what CSS you are applying to the image to rotate it that I can use as a reproduction case? Post it over in #41 - I'll close this as a duplicate to keep things tidy.

@wittlock wittlock added the duplicate This issue or pull request already exists label Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants