-
-
Notifications
You must be signed in to change notification settings - Fork 984
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
Can't disable PanGestureHandler #255
Comments
Hi, |
Sure, basically what I do is, to disable it when the image that is panned hits the bounds. It happens on
|
...so this example is working and you wish to remove |
No no no. I meant if you set Actually, I made a snack to make it easier to see. Then I realized it was working as expected. After testing everything I realized if I had it wrapped in a Modal, as in the snack it right now, it stopped working as expected. You can try it here. Pinch and zoom the image, then pan it to left until you hit the bound, you will see that it will stop responding as expected. But then move your finger away and try panning again, you can pan it! If you change the wrapper to be a |
@farkob, |
As you see, we have modals on radar, but frankly speaking, we cannot find out what's the problem 😢 |
For now I decided to close this issue as it is related to another one |
I disable a PanGestureHandler through its
enabled
prop while it's responding, I disable it using setState when a value hits a limit while the interaction is going on. Handler stops responding as expected. However, after that when I start interacting again, even thoughenabled={false}
it keeps responding. (On iOS, haven't tested on Android)(Also not related but a question: This PanGestureHandler is inside a ScrollView, after I disable the PanGestureHandler, I want ScrollView to respond as normal in that same continuous finger move, how can I do this? Any ideas?)
The text was updated successfully, but these errors were encountered: