Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Added onSwipeEnd to README
Browse files Browse the repository at this point in the history
  • Loading branch information
arturnista authored and exelban committed Dec 4, 2017
1 parent 0a1da4a commit 82ef53a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ class Demo extends Component{
this.onSwipeListener = this._onSwipeListener.bind(this);
}
render() {
return (<Swipe
return (<Swipe
nodeName="div"
className="test"
mouseSwipe={false}
onSwipedLeft={this.onSwipeLeftListener}
onSwipedRight={this.onSwipeRightListener}
onSwipedDown={this.onSwipeDownListener}
onSwipedLeft={this.onSwipeLeftListener}
onSwipedRight={this.onSwipeRightListener}
onSwipedDown={this.onSwipeDownListener}
onSwipedUp={this.onSwipeUpListener}
onSwipe={this.onSwipeListener}>
Demo
Expand Down Expand Up @@ -86,6 +86,8 @@ render(<Demo/>, document.getElementById('app') );

**```onSwipe```** are called when the swipe started. Return distance from starting point [x,y]. One value will be 0. If value is non 0 it means that it's main swipe axis.

**```onSwipeEnd```** are called when the swipe ended.

**```onTransitionEnd```** event is fired when a CSS transition has completed.


Expand All @@ -100,6 +102,7 @@ render(<Demo/>, document.getElementById('app') );
preventDefaultEvent: PropTypes.bool,

onSwipe: PropTypes.func,
onSwipeEnd: PropTypes.func,
onSwipingUp: PropTypes.func,
onSwipingRight: PropTypes.func,
onSwipingDown: PropTypes.func,
Expand Down

0 comments on commit 82ef53a

Please sign in to comment.