Big rewrite to support 0.14 and previous version (at least back to 0.12.x)
- Modify elements that have
onClick
props with additional event props - Decrease chance of memory leaks
- Fixes #13 (removing, hiding and moving elements still triggering click events)
- Click events only triggered if touch released on same element
- Allow standard onClick events to happen (allowing checkboxes, labels, inputs, focusing, etc to function)
- Handle special cases for inputs etc be focussed / accessed quickly
- Remove need for timeouts
- Handle
React.DOM.x
element creation - Support 0.14+ (fixes #14)
- Support older versions of React (theoretically - not tested)
New features (mentioned in / fixes #4)
- Added
event.button = 0
- Changed
event.type
toclick
- Added
event.fastclick = true
- Copy touch positions to event