Skip to content

Commit 6c63a99

Browse files
Update appyx-interactions/common/src/commonMain/kotlin/com/bumble/appyx/interactions/composable/AppyxInteractionsContainer.kt
Co-authored-by: Andrey Kovalev <[email protected]>
1 parent a8c6ca4 commit 6c63a99

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

appyx-interactions/common/src/commonMain/kotlin/com/bumble/appyx/interactions/composable/AppyxInteractionsContainer.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,13 @@ fun <InteractionTarget : Any, ModelState : Any> AppyxInteractionsContainer(
113113
)
114114
)
115115
}
116-
.then(if (!appyxComponent.isGesturesEnabled) Modifier else Modifier.onPointerEvent {
117-
if (it.type == PointerEventType.Release) {
118-
appyxComponent.onRelease()
119-
}
116+
.then(if (appyxComponent.isGesturesEnabled) {
117+
Modifier.onPointerEvent {
118+
if (it.type == PointerEventType.Release) {
119+
appyxComponent.onRelease()
120+
} else {
121+
Modifier
122+
}
120123
})
121124
) {
122125
CompositionLocalProvider(LocalBoxScope provides this) {

0 commit comments

Comments
 (0)