Skip to content

Commit 7f4193a

Browse files
committed
update changelog for 5.1.0
1 parent 7e3ac11 commit 7f4193a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# 5.1.0
2+
* Fix for `preventDefaultTouchmoveEvent` in safari [issue #127](https://github.com/dogfessional/react-swipeable/issues/127) and [PR #131](https://github.com/dogfessional/react-swipeable/pull/131)
3+
* Thank you [@JiiB](https://github.com/JiiB) and [@bhj](https://github.com/bhj)!
4+
* use `ref` callback for both `<Swipeable>` and `useSwipeable` to attach all touch event handlers
5+
* `useSwipeable`'s returned `handlers` now contains a ref callback
6+
* Please see disscusion and comments in both [#127](https://github.com/dogfessional/react-swipeable/issues/127) and [#131](https://github.com/dogfessional/react-swipeable/issues/127) for more details and info.
7+
* fix avoids the `passive: true` issue from chrome document event listeners
8+
* fix avoids bug on safari where the `touchmove` event listener needs to be attached before a `touchstart` in order to be able to call `e.preventDefault`
9+
* removed `touchHandlerOption` prop
10+
* fix above deprecates this prop
11+
112
# 5.0.0
213
* Introduce react hook, `useSwipeable`
314
* Core rewrite to simplify api and trim down bundled size

0 commit comments

Comments
 (0)