zilverline / react-tap-event-plugin

Instant TapEvents for React
http://facebook.github.io/react/
MIT License
1.07k stars 110 forks source link

Why tap event is still working on pc browser by mouse click? #74

Closed g0ne150 closed 8 years ago

g0ne150 commented 8 years ago

I wonder why?

madjam002 commented 8 years ago

onTouchTap also handles mouse events on desktop. You can use the shouldRejectClick config option to prevent click events from being captured.

g0ne150 commented 8 years ago

@madjam002 i just figure it out two mins ago.

madjam002 commented 8 years ago

@g0ne150 What was the issue?

g0ne150 commented 8 years ago

@madjam002 It doesn't reject click on desktop by default, so I wonder why onTouchTap is still fired by click on desktop

madjam002 commented 8 years ago

onTouchTap will fire from a click event, that's by design.

mrdulin commented 6 years ago

same issue. Maybe the document should be more clear.