appyx
appyx copied to clipboard
[#600] Avoid gesture-related modifier if gestures are disabled
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
- [x] I've updated
CHANGELOG.md
if required. - [x] I've updated the documentation if required.