Skip to content

Commit

Permalink
use pointerInput instead of clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Jul 9, 2024
1 parent 76af20d commit 9c2d6f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package com.wire.android.navigation

import androidx.compose.animation.EnterExitState
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
Expand All @@ -29,6 +28,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.pointer.pointerInput
import com.ramcosta.composedestinations.scope.AnimatedDestinationScope
import com.ramcosta.composedestinations.scope.DestinationScope
import com.ramcosta.composedestinations.wrapper.DestinationWrapper
Expand All @@ -47,7 +47,7 @@ object WaitUntilTransitionEndsWrapper : DestinationWrapper {
if (!transitionComplete) {
Box(modifier = Modifier
.fillMaxSize()
.clickable {
.pointerInput(Unit) {
// empty, do nothing to prevent clicks
}
)
Expand Down

0 comments on commit 9c2d6f2

Please sign in to comment.