Skip to content

Commit 37fb367

Browse files
authored
add changelog and readme for initial eventdata (#159)
1 parent c1b0604 commit 37fb367

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 5.4.0
2+
* Add `initial` property to `eventData` that supplies the inital `[x, y]` swipe value coordinates [issue #150](https://github.com/dogfessional/react-swipeable/issues/150) and [PR #131](https://github.com/dogfessional/react-swipeable/pull/151)
3+
14
# 5.3.0
25
* Optimization for `useSwipeable` hook. Added `useMemo` for handler internals [issue #134](https://github.com/dogfessional/react-swipeable/issues/134) and [PR #149](https://github.com/dogfessional/react-swipeable/pull/149)
36
* Thank you [@FaberVitale](https://github.com/FaberVitale)!

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ All Event Handlers are called with the below event data.
5151
```
5252
{
5353
event, // source event
54+
inital, // initial swipe [x,y]
5455
deltaX, // x offset (initial.x - current.x)
5556
deltaY, // y offset (initial.y - current.y)
5657
absX, // absolute deltaX

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-swipeable",
33
"version": "5.3.0",
4-
"description": "Swipe event handler & hook for react",
4+
"description": "React Swipe event handler component & hook",
55
"main": "./lib/index.js",
66
"module": "es/index.js",
77
"scripts": {

0 commit comments

Comments
 (0)