zilverline / react-tap-event-plugin

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

preventDefault is ignored on onTouchTap events #117

Closed kricore closed 6 years ago

kricore commented 6 years ago

If I am not mistaken, there is no way to enforce e.preventDefault() after some updates. Is there an easy way around this? https://www.chromestatus.com/features/5093566007214080 https://developers.google.com/web/updates/2017/01/scrolling-intervention

kricore commented 6 years ago

I managed to get rid of the notice by using touch-action: manipulation on the parent object. The bubbling can stop by adding an arrow function (with events) on the onTapTouch event.