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

Commit 82ef53a

Browse files
arturnistaexelban
authored andcommitted
Added onSwipeEnd to README
1 parent 0a1da4a commit 82ef53a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ class Demo extends Component{
3333
this.onSwipeListener = this._onSwipeListener.bind(this);
3434
}
3535
render() {
36-
return (<Swipe
36+
return (<Swipe
3737
nodeName="div"
3838
className="test"
3939
mouseSwipe={false}
40-
onSwipedLeft={this.onSwipeLeftListener}
41-
onSwipedRight={this.onSwipeRightListener}
42-
onSwipedDown={this.onSwipeDownListener}
40+
onSwipedLeft={this.onSwipeLeftListener}
41+
onSwipedRight={this.onSwipeRightListener}
42+
onSwipedDown={this.onSwipeDownListener}
4343
onSwipedUp={this.onSwipeUpListener}
4444
onSwipe={this.onSwipeListener}>
4545
Demo
@@ -86,6 +86,8 @@ render(<Demo/>, document.getElementById('app') );
8686

8787
**```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.
8888

89+
**```onSwipeEnd```** are called when the swipe ended.
90+
8991
**```onTransitionEnd```** event is fired when a CSS transition has completed.
9092

9193

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

102104
onSwipe: PropTypes.func,
105+
onSwipeEnd: PropTypes.func,
103106
onSwipingUp: PropTypes.func,
104107
onSwipingRight: PropTypes.func,
105108
onSwipingDown: PropTypes.func,

0 commit comments

Comments
 (0)