Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-swipeable

Package Overview
Dependencies
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-swipeable - npm Package Compare versions

Comparing version 3.8.0 to 3.9.1

5

CHANGELOG.md

@@ -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 @@

4

lib/Swipeable.js

@@ -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;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc