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 committed Sep 6, 2024
1 parent 0c461a8 commit 0bf26af
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 0bf26af

Please sign in to comment.