You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is in the _calcVisibleRectForCropArea.
The scale width and height variables should look something more like this.
// determine the scales based on original / current sizes
CGFloat scaleWidth = self.imageView.image.size.width / self.imageView.frame.size.width;
CGFloat scaleHeight = self.imageView.image.size.height / self.imageView.frame.size.height;
// factor the zoom scale of the scroll view
scaleWidth *= self.scrollView.zoomScale;
scaleHeight *= self.scrollView.zoomScale;
Steps to reproduce:
The screens below display both flows: first a correct crop, then the misplaced one.
The text was updated successfully, but these errors were encountered: