Aghajari / LazySwipeCards

LazySwipeCards is a card swiping Jetpack Compose library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with Scroll Events Being Intercepted by Parent Components

Nurattin opened this issue · comments

Problem Description:
I encountered an issue where a card, placed within a scrollable component (such as a Column), does not correctly process swipe gestures. The gesture events are intercepted by the parent component, rendering it impossible to swipe on the card.

Steps to Reproduce:

  1. Create a composition with a Column that has verticalScroll applied.
  2. Inside the Column, add card components.
  3. Attempt to perform a swipe gesture on a card.

Expected Behavior:
The card should be able to handle swipe gestures independently, without the parent scrollable component interfering or capturing the swipe gestures meant for the card.

Current Behavior:
The swipe gesture is intercepted by the Column with verticalScroll, activating scrolling instead of allowing the swipe gesture to be recognized and processed by the card.