From c4479753fa3b06774ee41f112e1cb375e83b7c9e Mon Sep 17 00:00:00 2001 From: taslimisina Date: Sat, 15 May 2021 23:40:41 +0430 Subject: [PATCH] Resolve igreenwood/SimpleCropView#150 --- .../main/java/com/isseiaoki/simplecropview/CropImageView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java b/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java index b515aa7..8800f28 100644 --- a/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java +++ b/simplecropview/src/main/java/com/isseiaoki/simplecropview/CropImageView.java @@ -514,7 +514,7 @@ private void drawHandleShadows(Canvas canvas) { private void setMatrix() { mMatrix.reset(); - mMatrix.setTranslate(mCenter.x - mImgWidth * 0.5f, mCenter.y - mImgHeight * 0.5f); + mMatrix.setTranslate(mCenter.x - mImgWidth * mScale * 0.5f, mCenter.y - mImgHeight * mScale * 0.5f); mMatrix.postScale(mScale, mScale, mCenter.x, mCenter.y); mMatrix.postRotate(mAngle, mCenter.x, mCenter.y); }