question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disbale panGesture partially

See original GitHub issue

I have some nested components inside the modalize and panGesture is making problem while working interacting with these components, These components work fine if I disable the gesture with this panGestureEnabled={false}.

Now my question is, Is there a way for disabling the gesture for some particular area or some specific component? Like in the react-navigation v5 the modal has gesture enabled for some upper portion of the screen.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jeremybarbetcommented, May 20, 2020

For now, it’s not possible. You are only able to enable/disable all gestures altogether.

Even though, it would be very easy to add a boolean to enable/disable only the header/footer/floating component and not the scollview and vice versa.

Feel free to open a PR if you have a fix for it 😃

1reaction
waheedakhtar694commented, May 16, 2020

@jeremybarbet As you said it’s possible to enable the header/footer/floating components gestures while the scrollview gestures are disabled, Is there any way we can disable the gesture of these components ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable back swipe gesture in UINavigationController ...
I found out setting the gesture to disabled only doesn't always work. It does work, but for me it only did after I...
Read more >
Swipe from left to right, how to disable this gesture
Swipe from left to right, in our implementation, this gesture should be disabled as it sometimes causes the row item to be pushed...
Read more >
Disabling the Pull-Down Gesture for a Sheet - Apple Developer
To disable dismissal of a view controller presentation, set isModalInPresentation to true . // If there are unsaved changes, enable the Save button...
Read more >
Enable/disable drawer gesture for a screen #390 - GitHub
In my case, I've disabled all gestures( pan gesture and tap gesture--the shadow layer), only reserved the outer button action for DrawerOpen and ......
Read more >
Gestures | Framer for Developers
The pan gesture recognises when a pointer presses down on a component and moves further than 3 pixels. The pan gesture is ended...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found