Skip to content

Commit 405543c

Browse files
fix StaticCropState not moving to correct bounds
StaticCropState fix for moving back to valid bounds when it's translation is not zero before double tap
1 parent db257da commit 405543c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cropper/src/main/java/com/smarttoolfactory/cropper/state/StaticCropState.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ class StaticCropState internal constructor(
118118
resetTracking()
119119
}
120120
resetWithAnimation(pan = pan, zoom = zoom, rotation = rotation)
121+
drawAreaRect = updateImageDrawRectFromTransformation()
122+
animateTransformationToOverlayBounds(overlayRect,true)
121123
onAnimationEnd()
122124
}
123125
}

0 commit comments

Comments
 (0)