Skip to content

Commit

Permalink
Revert "Fail fast if settle is called before a transformation ends"
Browse files Browse the repository at this point in the history
This reverts commit 83bb9a9
to address #96
  • Loading branch information
saket committed Aug 15, 2024
1 parent ce4ec9b commit 57ca6a6
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,6 @@ internal class RealZoomableState internal constructor(

internal suspend fun animateSettlingOfZoomOnGestureEnd() {
check(isReadyToInteract) { "shouldn't have gotten called" }
check(!transformableState.isTransformInProgress) { "another transformation is already in progress" }

val start = gestureState!!
val userZoomWithinBounds = ContentZoomFactor(baseZoomFactor!!, start.userZoomFactor)
.coerceUserZoomIn(zoomSpec.range)
Expand Down

0 comments on commit 57ca6a6

Please sign in to comment.