Address telephoto deprecated API
This commit is contained in:
1 parent
0def055e8b
commit
a305980a78
1 file changed
+1
-1
@@ -171,7 +171,7 @@ private fun PageContainer(
|
||||
delay(500)
|
||||
val contentSize = zoomableState.transformedContentBounds.size
|
||||
val scale = ContentScale.FillHeight.computeScaleFactor(contentSize, layoutSize)
|
||||
val targetScale = scale.scaleX.coerceAtMost(zoomableState.zoomSpec.maxZoomFactor)
|
||||
val targetScale = scale.scaleX.coerceAtMost(zoomableState.zoomSpec.maximum.factor)
|
||||
val offset = alignment.align(0, layoutSize.width.toInt(), LayoutDirection.Ltr)
|
||||
zoomableState.zoomTo(targetScale, Offset(offset.toFloat(), 0f))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user