JakeSidSmith / react-fastclick

Fast Touch Events for React
https://www.npmjs.com/package/react-fastclick
MIT License
487 stars 41 forks source link

Create synthetic fastclick event #4

Closed JakeSidSmith closed 8 years ago

JakeSidSmith commented 9 years ago
{
  type: 'fastclick',
  clientX: 0,
  clientY: 0,
  pageX: 0,
  pageY: 0,
  touches: [],
  //... Copy all other keys?
}
JakeSidSmith commented 9 years ago

Further thought into this - I'd like to use the type click so that people who have already setup a project using onClick will not have to change anything.

To differentiate the 2 events I'll add another key fastclick.

{
  type: 'click',
  fastclick: true,
  clientX: 0,
  clientY: 0,
  pageX: 0,
  pageY: 0,
  touches: [],
  //... Copy all other keys?
}