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

Possible for child component to not be swipable? #119

Open
strangecarr opened this issue Oct 19, 2022 · 1 comment
Open

Possible for child component to not be swipable? #119

strangecarr opened this issue Oct 19, 2022 · 1 comment

Comments

@strangecarr
Copy link

In my tindercard, I have rendered a map using mapbox. The map can move and zoom, but this doesn't work that well as the tindercard tries to move too. Is it possible to disable the swiping behaviour for child components?

@3DJakob
Copy link
Owner

3DJakob commented Oct 20, 2022

First, I assume you are running the React version of the code, not the native version.

Hm yes, that should be possible. Try adding event.preventdefault() to all related event like onTouchStart, onTouchMove etc.

It might work simply by adding className=pressable on your mapview.

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

No branches or pull requests

2 participants