Skip to content

Conversation

peposdd
Copy link

@peposdd peposdd commented Jun 9, 2024

Description

Fixes #600

The .onPointerEvent modifier applied to the parent Box of the container was always active, even when isGesturesEnabled was set to false. This caused unnecessary interception of gestures, preventing them from properly propagating up the view tree.

The fix is conditionally applying the .onPointerEvent modifier only when isGesturesEnabled is true. This ensures that gestures are intercepted only when necessary, allowing them to propagate correctly when gestures are disabled.

Checklist

  • I've updated CHANGELOG.md if required.
  • I've updated the documentation if required.

peposdd and others added 2 commits September 5, 2024 20:20
…yx/interactions/composable/AppyxInteractionsContainer.kt

Co-authored-by: Andrey Kovalev <andreykovalev.nn@gmail.com>
@peposdd peposdd force-pushed the peposdd/avoid-pointer-event-modifier-if-gestures-disabled branch from 6c63a99 to 0bf26af Compare September 6, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parent interaction is gone once it has a child on top

2 participants