Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ internal class ComposeUiClusterRenderer<T : ClusterItem>(
private fun createAndAddView(key: ViewKey<T>): ViewInfo {
val view = InvalidatingComposeView(
context,
getRotation = {
getRotationOverride = {
when (key) {
is ViewKey.Cluster -> clusterContentRotationState.value
is ViewKey.Item -> clusterItemContentRotationState.value
Expand Down Expand Up @@ -381,7 +381,7 @@ internal class ComposeUiClusterRenderer<T : ClusterItem>(
*/
private class InvalidatingComposeView(
context: Context,
private val getRotation: () -> Float,
private val getRotationOverride: () -> Float,
private val getAnchor: () -> Offset,
private val getZIndex: () -> Float,
private val content: @Composable () -> Unit,
Expand All @@ -392,7 +392,7 @@ internal class ComposeUiClusterRenderer<T : ClusterItem>(

@Composable
override fun Content() {
val rotation = getRotation()
val rotation = getRotationOverride()
val anchor = getAnchor()
val zIndex = getZIndex()
LaunchedEffect(properties.anchor, properties.zIndex, properties.rotation, rotation, anchor, zIndex) {
Expand Down
Loading