- fixed; Actually include React 15.2+ compatability patches this time!
- fixed; React 15.2+ compatiblity patches from the last version were lost during build, correctly included in this version
- fixed; warnings from React 15.2+ about invalid dom attributes have been resolved, thanks Olivier Tassinari
- fixed; pinch angle calculations have been fixed, thanks Yusuke Shibata
- fixed;
detectScroll()
didn't work properly on Android, thanks Fangzhou Li - fixed;
ReactDOM
global is now used in thedist
build
Updated to allow compatiblity with React 15.x
Tappable now supports keyboard events; a keyDown
event with the space
or enter
keys followed by a keyUp
event will fire the onTap
handler.
New props onKeyDown
and onKeyUp
have also been added; return false
from onKeyDown
to prevent event handling.
Thanks to Will Binns-Smith for this update.
- added; new
classes
prop (Object
) adds support for defining the complete className applied with the component isactive
orinactive
. Handy for use with css-modules, thanks Rudin Swagerman.
- fixed; use
react-dom
forfindDOMNode
, thanks Daniel Cousens
Tappable is updated for React 0.14. If you're still using React 0.13, please continue to use react-tappable@0.6.x
. There are no functional differences between v0.7.0 and v0.6.0.
This release contains a major refactor that makes react-tappable
more modular, thanks to Naman Goel
You can now use just the Tappable
component, or choose to use the TapAndPinchable
(default export). Instructions will be added to the Readme with more information soon.
- fixed; removed former hacky attempts to handle the React eventpooling problem
- added; support for React
0.14.0-beta1
- fixed; regression introduced in
v0.5.5
where errors would occur in certain conditions
- fixed;
afterEndTouch
is now called synchronously, which means the SyntheticTouch event behaves as expected. See #39 and #47 for more information.
- fixed; removed
React.initializeTouchEvents
, no longer needed and breaks in React 0.14
- fixed;
preventDefault
issue on iOS
- Added
activeDelay
prop, delays adding the-active
class by the provided milliseconds for situations when you don't want to hilight a tap immediately (e.g. iOS Scrollable Lists)
- Fixed issue where halting momentum scrolling would incorrectly fire a tap event
onTap
now fires after the tappable'ssetState
is complete, resolves some animation edge-case issues
- Using Babel's polyfill for Object.assign
lib
build (via Babel) is provided for use without further transpilationpreventDefault
is called to clock the click event firing after a touch has been detected- React has been changed to a dev/peerDependency
- Added pinch events -
onPinchStart
,onPinchMove
,onPinchEnd
- Older single touch based events don't fire when dealing with multi-touch
- Refactored the way props are passed to component. You can now pass in custom properties for the target component that are not meant for React-Tappable
- Now works with React 0.13, backwards compatible with 0.12
- Support for
data-
andaria-
props on the Component, thanks Tom Hicks
- Cleanup around removal of Reactify, build-examples is working again
- Reactify is no longer included as a Browserify transform, thanks Naman Goel
This release restructured the code so that most methods are now on a Mixin, which is used by the Component (module.exports
);
You can now mix react-tappable
into your own Components by using the Mixin directly:
var Tappable = require('react-tappable');
var MyComponent = React.createComponent({
mixins: [Tappable.Mixin],
/* ... */
});