wittlock/ngx-image-zoom

Improper zoom cursor calculation on ROTATED images

Closed this issue · 1 comments

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.

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.