Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#600] Avoid gesture-related modifier if gestures are disabled #707

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from

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
@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