react-swipeable
Advanced tools
Comparing version 3.8.0 to 3.9.1
@@ -0,1 +1,6 @@ | ||
# 3.9.0 | ||
* add `onTap` functionality. Thanks [@anicke](https://github.com/anicke) . [#61](https://github.com/dogfessional/react-swipeable/pull/61) [#39](https://github.com/dogfessional/react-swipeable/issues/39) | ||
* added persisting synthetic event in example via `e.persist()`. This should help people see more details in the console when debugging in the [example](http://dogfessional.github.io/react-swipeable/). | ||
# 3.8.0 | ||
@@ -2,0 +7,0 @@ |
@@ -30,2 +30,3 @@ 'use strict'; | ||
onSwipedLeft: React.PropTypes.func, | ||
onTap: React.PropTypes.func, | ||
flickThreshold: React.PropTypes.number, | ||
@@ -200,2 +201,4 @@ delta: React.PropTypes.number, | ||
} | ||
} else { | ||
this.props.onTap && this.props.onTap(e); | ||
} | ||
@@ -226,2 +229,3 @@ | ||
delete newProps.onSwipedLeft; | ||
delete newProps.onTap; | ||
delete newProps.flickThreshold; | ||
@@ -228,0 +232,0 @@ delete newProps.delta; |
{ | ||
"name": "react-swipeable", | ||
"version": "3.8.0", | ||
"version": "3.9.1", | ||
"description": "Swipe bindings for react", | ||
@@ -5,0 +5,0 @@ "main": "lib/Swipeable.js", |
@@ -28,2 +28,3 @@ # Swipeable [![npm version](https://img.shields.io/npm/v/react-swipeable.svg?style=flat-square)](https://www.npmjs.com/package/react-swipeable) [![npm downloads](https://img.shields.io/npm/dm/react-swipeable.svg?style=flat-square)](https://www.npmjs.com/package/react-swipeable) | ||
onSwipingLeft={this.swipingLeft} | ||
onSwiped={this.swiped} | ||
onSwipedUp={this.swipedUp} | ||
@@ -33,3 +34,3 @@ onSwipedRight={this.swipedRight} | ||
onSwipedLeft={this.swipedLeft} | ||
onSwiped={this.handleSwipeAction}> | ||
onTap={this.tapped} > | ||
You can swipe here! | ||
@@ -54,2 +55,4 @@ </Swipeable> | ||
**`onTap`** is called with the onTouchEnd event when the element has been tapped. `this.props.onTap(e)` | ||
#####Configuration Props | ||
@@ -83,2 +86,3 @@ | ||
onSwipedLeft: React.PropTypes.func, | ||
onTap: React.PropTypes.func, | ||
flickThreshold: React.PropTypes.number, | ||
@@ -85,0 +89,0 @@ delta: React.PropTypes.number, |
@@ -24,2 +24,3 @@ const React = require('react') | ||
onSwipedLeft: React.PropTypes.func, | ||
onTap: React.PropTypes.func, | ||
flickThreshold: React.PropTypes.number, | ||
@@ -199,2 +200,4 @@ delta: React.PropTypes.number, | ||
} | ||
} else { | ||
this.props.onTap && this.props.onTap(e) | ||
} | ||
@@ -226,2 +229,3 @@ | ||
delete newProps.onSwipedLeft | ||
delete newProps.onTap | ||
delete newProps.flickThreshold | ||
@@ -228,0 +232,0 @@ delete newProps.delta |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22095
410
107