From 6c63a99ea7e78cd8fdd2b69a5a75cd5dedae8199 Mon Sep 17 00:00:00 2001 From: Jose Carmona <126043758+peposdd@users.noreply.github.com> Date: Thu, 5 Sep 2024 20:18:49 -0700 Subject: [PATCH] Update appyx-interactions/common/src/commonMain/kotlin/com/bumble/appyx/interactions/composable/AppyxInteractionsContainer.kt Co-authored-by: Andrey Kovalev --- .../composable/AppyxInteractionsContainer.kt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/appyx-interactions/common/src/commonMain/kotlin/com/bumble/appyx/interactions/composable/AppyxInteractionsContainer.kt b/appyx-interactions/common/src/commonMain/kotlin/com/bumble/appyx/interactions/composable/AppyxInteractionsContainer.kt index 3e3a248ef..277f22d2e 100644 --- a/appyx-interactions/common/src/commonMain/kotlin/com/bumble/appyx/interactions/composable/AppyxInteractionsContainer.kt +++ b/appyx-interactions/common/src/commonMain/kotlin/com/bumble/appyx/interactions/composable/AppyxInteractionsContainer.kt @@ -113,10 +113,13 @@ fun AppyxInteractionsContainer( ) ) } - .then(if (!appyxComponent.isGesturesEnabled) Modifier else Modifier.onPointerEvent { - if (it.type == PointerEventType.Release) { - appyxComponent.onRelease() - } + .then(if (appyxComponent.isGesturesEnabled) { + Modifier.onPointerEvent { + if (it.type == PointerEventType.Release) { + appyxComponent.onRelease() + } else { + Modifier + } }) ) { CompositionLocalProvider(LocalBoxScope provides this) {