dillon1000/react

Commit

Fixing touch/mouse issues with TapEventPlugin

On ios device, browser simulates mouse events, but does that with
a delay, because of double tap gesture. The problem is that
TapEventPlugins listens to both types of events, so it fires twice

Everytime there is a touch event, we should ignore mouse events that
follow it.  This way, we still respond to both mouse and touch events,
just ignore the device generated ones.
Browse files
Changed paths1 file
First-parent comparison
M src/browser/eventPlugins/TapEventPlugin.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…