JedWatson / react-hammerjs

ReactJS / HammerJS integration. Support touch events in your React app.
MIT License
937 stars 129 forks source link

one hammer trigger another hammer #75

Closed githubtuxedo closed 5 years ago

githubtuxedo commented 7 years ago

when i use react-hammerjs to build a single page web application, I found that when I wrote Hammer with props 'onTap' and and another Hammer behind. The second Hammer tirggered when I clicked the first Hammer , How can I prevent it, Thanks for every advice.

githubtuxedo commented 7 years ago

And they are not parent and son. totally different part. Just shown by different condition, so i think it's not about bubble up

githubtuxedo commented 7 years ago

Besides, component A with Hammer, component B Input with onFocus behind would be activated by tap top Hammer component.

mengxxSELF commented 7 years ago

How do you use it? ~ I created multiple instances. None of them affect each other

githubtuxedo commented 5 years ago

Forgot close