ArthurHub / ArthurHub/Android-Image-Cropper

Possible zoom bug on rotation with fixed ratio

Open
#169 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

I think I found a bug.

When rotating an image 180 degrees (in my app this happens by twice rotating 90 degrees), it is zoomed in automatically.
So an image which was previously unzoomed, appears fine after a 90 degree rotation, but when rotation another 90 degree it becomes zoomed in and I can zoom out like you would normally.

A possible note I would add: I have a fixed aspect ratio and upon rotation I change the width and height of this aspect ratio (the selection rect).

My first guess is setting mZoom to 1 in the setRotatedDegrees() but eh..

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.