diff --git a/BJImageCropper/BJImageCropper.m b/BJImageCropper/BJImageCropper.m index 6e80d03..6a4fc2f 100644 --- a/BJImageCropper/BJImageCropper.m +++ b/BJImageCropper/BJImageCropper.m @@ -64,7 +64,7 @@ - (void)constrainCropToImage { change = YES; } - if (CGOriginX(frame) + CGWidth(frame) > CGWidth(cropView.superview.frame)) { + if (CGOriginX(frame) + CGWidth(frame) - CGWidth(cropView.superview.frame) > 0.01) { frame.origin.x = CGWidth(cropView.superview.frame) - CGWidth(frame); change = YES; }