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) {