Fix visibility calculation with zoomable content
This commit is contained in:
1 parent
ba9308bfbc
commit
2c15c74697
1 file changed
+2
-2
@@ -109,11 +109,11 @@ fun PagerItem(
|
||||
// DrawablePainter <: RememberObserver
|
||||
painter = remember(painter) { painter },
|
||||
contentDescription = null,
|
||||
modifier = contentModifier.fillMaxSize().thenIf(drawable is Animatable) {
|
||||
modifier = Modifier.thenIf(drawable is Animatable) {
|
||||
onVisibilityChanged(minDurationMs = 33, minFractionVisible = 0.5f) {
|
||||
drawable!!.setVisible(it, false)
|
||||
}
|
||||
},
|
||||
}.then(contentModifier).fillMaxSize(),
|
||||
contentScale = contentScale,
|
||||
colorFilter = when {
|
||||
grayScale && invert -> grayScaleAndInvertFilter
|
||||
|
||||
Reference in new issue
Block a user