Fix LocationDetail parallax.
This commit is contained in:
parent
8b22ea4276
commit
88c9e86770
1 changed files with 1 additions and 1 deletions
|
|
@ -408,7 +408,7 @@ private fun LocationContent(
|
||||||
.aspectRatio(ratio = 1f)
|
.aspectRatio(ratio = 1f)
|
||||||
.scrollOffset(scrollState = scrollState) {
|
.scrollOffset(scrollState = scrollState) {
|
||||||
val mapHeight = (mapSize.value?.height ?: 0).toDp()
|
val mapHeight = (mapSize.value?.height ?: 0).toDp()
|
||||||
min((mapHeight - it) / 2, 0.dp)
|
-min((mapHeight - it) / 2, 0.dp)
|
||||||
},
|
},
|
||||||
model = uri,
|
model = uri,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue