FormidableLabs / FormidableLabs/react-swipeable

Possible to stop propagation in custom swiped ?

Open
#313 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.1k
Forks
149
PR merge metrics
No merged PRs in 30d

Description

Hello, I have a swipe listener (on swipe right) at document level and another one (on left and right) in a div.
I would like to use event.stopPropagation (as it is possible in onSwiped) but in onSwipedRight / onSwipedLeft.

Is it possible ?
Thanks

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing onSwiped, onSwipedRight, and onSwipedLeft callback entry points and how propagation is currently handled. Determine whether the directional callbacks can support the same stop-propagation behavior as onSwiped; the work is done when the requested behavior is defined and covered for both left and right swipes.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, mobile-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.