We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04960bc + cb0c076 commit 7003520Copy full SHA for 7003520
cropper/src/main/java/com/smarttoolfactory/cropper/state/CropStateImpl.kt
@@ -314,9 +314,6 @@ abstract class CropState internal constructor(
314
val newPanX = pan.x + panXChange
315
val newPanY = pan.y + panYChange
316
317
- // Update draw area based on new pan and zoom values
318
- drawAreaRect = newDrawAreaRect
319
-
320
if (animate) {
321
resetWithAnimation(
322
pan = Offset(newPanX, newPanY),
@@ -330,6 +327,8 @@ abstract class CropState internal constructor(
330
327
}
331
328
332
329
resetTracking()
+
+ drawAreaRect = updateImageDrawRectFromTransformation()
333
334
335
/**
0 commit comments