Skip to content

Commit

Permalink
Update appyx-interactions/common/src/commonMain/kotlin/com/bumble/app…
Browse files Browse the repository at this point in the history
…yx/interactions/composable/AppyxInteractionsContainer.kt

Co-authored-by: Andrey Kovalev <[email protected]>
  • Loading branch information
peposdd and KovalevAndrey authored Sep 6, 2024
1 parent a8c6ca4 commit 6c63a99
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,13 @@ fun <InteractionTarget : Any, ModelState : Any> 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) {
Expand Down

0 comments on commit 6c63a99

Please sign in to comment.