heitorfr / ios-image-editor

iOS View Controller for image cropping. An alternative to the UIImagePickerController editor with extended features.
MIT License
602 stars 129 forks source link

image jump out of screen after scale #11

Closed shuhankuang closed 10 years ago

shuhankuang commented 11 years ago

if i scale the image with a very small size, then the image will jump out of the crop box, and may be jump out of screen.

heitorfr commented 11 years ago

Are you using checkBounds=YES? And in that case did you disable rotation (rotateEnabled =NO)?

kvting commented 10 years ago

I had the same problem that @shuhankuang and I did use checkBounds and disable rotation. The problem is in - (BOOL)handleGestureState:(UIGestureRecognizerState)state when you do the if(self.checkBounds) [self doCheckBounds]; I'll send you a pull request to solve this issue.

heitorfr commented 10 years ago

I've updated the check bounds implementation, now supports rotation too, yeay

kvting commented 10 years ago

Great!