Address telephoto deprecated API

This commit is contained in:
Dude so hot authored and renovate[bot] committed 2025-03-21 11:12:06 +08:00
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))
}