-
Notifications
You must be signed in to change notification settings - Fork 147
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
stopPropagation to prevent parent swipe #46
Comments
example In src: and
|
@MikeLP Are you looking to have this like react-tappable So it is run on |
@hartzis Right. In my case I have swipeable "switch" component in swipeable sidebar. So when I try to swipe a "switch" - sidebar will be swiped too. So one of solutions it will be stopPropagation property. If you see another way to resolve this issue, it doesn't matter for me. Unfortunately for now I forced to manually change yours component and use separatly in my project instead of npm. It will be nice to have fast fix of this issue and rollback to npm. P.S. Another case - implement the stopPropagation method call from any onSwipe callback. |
Thanks. |
This option was deleted? How it can be emulated now? |
@oleksandr-danylchenko yeah, in v5 we removed In the migration docs we mention that you can call https://github.com/FormidableLabs/react-swipeable/blob/master/migration.md#stoppropagation Example:
|
Hello! When I try to scroll a Dropdown inside the element that contains the swipe handlers, it executes its actions, how can I stop it? Thanks for your time! PS: i try stopPropagation(). but is the same. |
@mauricioross Howdy. Without an example to work with i can only guess, but my best guess would be to try adding an onClick and/or onTouchStart/onTouchMove handlers to your Dropdown and call |
Please add ability to call stopPropagation by props flag.
The text was updated successfully, but these errors were encountered: