Skip to content

Commit

Permalink
Merge pull request #440 from firemaples/fix/temporary-remove-animations
Browse files Browse the repository at this point in the history
Temporarily remove the animations on the result view
  • Loading branch information
firemaples authored Feb 17, 2024
2 parents 082ede4 + 27a4d7d commit 627992c
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package tw.firemaples.onscreenocr.floatings.compose.resultview

import android.content.res.Configuration
import android.graphics.Rect
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateIntOffsetAsState
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
Expand Down Expand Up @@ -91,10 +89,10 @@ fun ResultViewContent(
mutableStateOf(IntOffset(state.highlightUnion.left, state.highlightUnion.top))
}

val animOffset by animateIntOffsetAsState(
targetValue = targetOffset.value,
label = "result panel position",
)
// val animOffset by animateIntOffsetAsState(
// targetValue = targetOffset.value,
// label = "result panel position",
// )

ResultPanel(
modifier = Modifier
Expand All @@ -110,8 +108,9 @@ fun ResultViewContent(
padding = 16.dp.dpToPx(),
verticalSpacing = 4.dp.dpToPx(),
)
.offset { animOffset }
.animateContentSize(),
.offset { targetOffset.value },
// .offset { animOffset }
// .animateContentSize(),
viewModel = viewModel,
textSearchEnabled = state.textSearchEnabled,
fontSize = state.fontSize,
Expand Down

0 comments on commit 627992c

Please sign in to comment.