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.

Problem using 2 PanGestureHandler simultaneously

See original GitHub issue

Hello,

I’m currently trying to build a react-native app which is simulating a trackpad.

I should be able to click on a button, move above and then, release the button (or everything).

Everything is working like a charm on Android, but only the parent PanGesture (Move area) is working on IOS, no action triggered when touching the buttons.

Any ideas?

Regards

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
chillios-tscommented, Aug 21, 2019

@oktapodia I’ve build something similar with LongPressGestureHandler + TapGestureHandler. You don’t really need PanGestureHandler as onGestureEvent can stream you position too 😃

0reactions
oktapodiacommented, Aug 21, 2019

Working with the LongpressGestureHandler, thank you for your help! @dsznajder I need the PanGestureHandler to get the velocity as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple drag and drop simultaneous in React Native
I found a solution, i used react-native-gesture-handle like in the directory doubleDraggable of the example: ...
Read more >
Introduction | React Native Gesture Handler - Software Mansion
It is recommended to use Reanimated 2 for animations when using React Native ... If you want to make a gesture handler wait...
Read more >
The basics of PanGestureHandler with React Native ...
In this tutorial we'll learn the basics of the PanGestureHandler component (from react-native-gesture-handler package).
Read more >
react-native-gesture-handler - Bountysource
PinchGestureHandler and PanGestureHandler not working simultaneously $ 0. Created 2 years ago in software-mansion/react-native-gesture-handler with 12 comments.
Read more >
The basics of PanGestureHandler with React Native ... - Morioh
In this tutorial we'll learn the basics of the PanGestureHandler component (from ... We will also play around with some animations thanks to...
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