Skip to content

Commit

Permalink
[bumble-tech#600] Avoid gesture-related modifier if gestures are disa…
Browse files Browse the repository at this point in the history
…bled
  • Loading branch information
peposdd committed Jun 9, 2024
1 parent bd2798b commit a8c6ca4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## Pending changes

### Fixed

[#600](https://github.com/bumble-tech/appyx/issues/600) - Fix Parent interaction is gone once it has a child on top

## 2.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ fun <InteractionTarget : Any, ModelState : Any> AppyxInteractionsContainer(
)
)
}
.onPointerEvent {
.then(if (!appyxComponent.isGesturesEnabled) Modifier else Modifier.onPointerEvent {
if (it.type == PointerEventType.Release) {
appyxComponent.onRelease()
}
}
})
) {
CompositionLocalProvider(LocalBoxScope provides this) {
elementUiModels.forEach { elementUiModel ->
Expand Down

0 comments on commit a8c6ca4

Please sign in to comment.