zilverline/react-tap-event-plugin

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

g0ne150 opened this issue · 6 comments

I wonder why?

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

@madjam002 i just figure it out two mins ago.

@g0ne150 What was the issue?

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

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

same issue. Maybe the document should be more clear.