Skip to content

Commit 1bc436d

Browse files
update StaticCropState functions with new params
1 parent 7cbb5d3 commit 1bc436d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,14 @@ class StaticCropState internal constructor(
102102
onBoundsCalculated()
103103
}
104104

105-
animateTransformationToOverlayBounds()
105+
animateTransformationToOverlayBounds(overlayRect, animate = true)
106106
}
107107
}
108108

109109
// Double Tap
110110
override suspend fun onDoubleTap(
111-
pan: Offset,
111+
offset: Offset,
112112
zoom: Float,
113-
rotation: Float,
114113
onAnimationEnd: () -> Unit
115114
) {
116115
doubleTapped = true

0 commit comments

Comments
 (0)