1 | # 5.5.0
|
2 | * Add `first` property to `eventData` that is `true` for first swipe event [issue #160](https://github.com/formidablelabs/react-swipeable/issues/160) and [PR #162](https://github.com/formidablelabs/react-swipeable/pull/162)
|
3 | * Thank you [@samanpwbb](https://github.com/samanpwbb)!
|
4 |
|
5 | # 5.4.0
|
6 | * Add `initial` property to `eventData` that supplies the inital `[x, y]` swipe value coordinates [issue #150](https://github.com/formidablelabs/react-swipeable/issues/150) and [PR #131](https://github.com/formidablelabs/react-swipeable/pull/151)
|
7 |
|
8 | # 5.3.0
|
9 | * Optimization for `useSwipeable` hook. Added `useMemo` for handler internals [issue #134](https://github.com/formidablelabs/react-swipeable/issues/134) and [PR #149](https://github.com/formidablelabs/react-swipeable/pull/149)
|
10 | * Thank you [@FaberVitale](https://github.com/FaberVitale)!
|
11 |
|
12 | # 5.2.3
|
13 | * Add check for `event.cancelable` for `touchmove` events before calling `event.preventDefault()`, [issue #128](https://github.com/formidablelabs/react-swipeable/issues/128) and [PR #145](https://github.com/formidablelabs/react-swipeable/pull/145)
|
14 | * Thank you [@maurispalletti](https://github.com/maurispalletti)!
|
15 |
|
16 | # 5.2.2
|
17 | * Fix typescript types for `ref`, [issue #140](https://github.com/formidablelabs/react-swipeable/issues/140) and [PR #142](https://github.com/formidablelabs/react-swipeable/pull/142)
|
18 | * Thank you [@mastermatt](https://github.com/mastermatt)!
|
19 |
|
20 | # 5.2.0
|
21 | * Fix bug where callbacks/props were not refreshed for `useSwipeable` and `<Swipeable>`, [issue #136](https://github.com/formidablelabs/react-swipeable/issues/136) and [PR #138](https://github.com/formidablelabs/react-swipeable/pull/138)
|
22 | * Thank you [@caesarsol](https://github.com/caesarsol) and [@bas-l](https://github.com/bas-l)!
|
23 | * Add typescript types for `useSwipeable` and `<Swipeable>`, [issue #125](https://github.com/formidablelabs/react-swipeable/issues/125)
|
24 | * Thank you [@adambowles](https://github.com/adambowles)!
|
25 |
|
26 | # 5.1.0
|
27 | * Fix for `preventDefaultTouchmoveEvent` in safari [issue #127](https://github.com/formidablelabs/react-swipeable/issues/127) and [PR #131](https://github.com/formidablelabs/react-swipeable/pull/131)
|
28 | * Thank you [@JiiB](https://github.com/JiiB) and [@bhj](https://github.com/bhj)!
|
29 | * use `ref` callback for both `<Swipeable>` and `useSwipeable` to attach all touch event handlers
|
30 | * `useSwipeable`'s returned `handlers` now contains a ref callback
|
31 | * Please see disscusion and comments in both [#127](https://github.com/formidablelabs/react-swipeable/issues/127) and [#131](https://github.com/formidablelabs/react-swipeable/issues/127) for more details and info.
|
32 | * fix avoids the `passive: true` issue from chrome document event listeners
|
33 | * 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`
|
34 | * removed `touchHandlerOption` prop
|
35 | * fix above deprecates this prop
|
36 |
|
37 | # 5.0.0
|
38 | * Introduce react hook, `useSwipeable`
|
39 | * Core rewrite to simplify api and trim down bundled size
|
40 | * Add `size-limit` to help keep bundled size down
|
41 | * Add `es` export via `"module": "es/index.js"` to `package.json`
|
42 | * Add `prettier` code formating
|
43 | * **[BREAKING]** simplify handler event data to allow destructuring
|
44 | * `onSwiped = ({ event, direction, absX, absY, velocity}) => console.log('swiped')`
|
45 | * **[BREAKING]** deprecated `onSwiping{Left|Right|Up|Down}` handler props
|
46 | * can be replaced with direction/`dir` event data
|
47 | * `` onSwiping = ({ dir }) => console.log(`swiping - ${dir}`) ``
|
48 | * **[BREAKING]** deprecated props
|
49 | * `flickThreshold`
|
50 | * `stopPropagation`
|
51 | * `disabled`
|
52 | * **[BREAKING]** deprecated passing "rest" of props down
|
53 | * removed additional props besides the ones used by `<Swipeable>` from being passed down
|
54 | * only `className` and `style` get passed to `<Swipeable>`'s dom node, default `div`
|
55 |
|
56 |
|
57 |
|
58 | # 4.3.0
|
59 | * Add `rotationAngle` prop. [#103](https://github.com/formidablelabs/react-swipeable/pull/103)
|
60 | * will allow to set a rotation angle, e.g. for a four-player game on a tablet, where each player has a 90° turned view.
|
61 | * Thank you [@Narquadah](https://github.com/Narquadah) and [@LarsKumbier](https://github.com/LarsKumbier)!
|
62 |
|
63 | # 4.2.2
|
64 | * fixed bug that happened when if either `onSwiping` or `onSwiped` were set we were not calling `e.preventDefault()` appropriately
|
65 |
|
66 | # 4.2.0
|
67 | * Add support for calling `preventDefault` on Chrome 56+ via passive event support checking and manual event listener setup. [#88](https://github.com/formidablelabs/react-swipeable/pull/88)
|
68 | * Thank you [@kl0tl](https://github.com/kl0tl) and [@KrashStudio](https://github.com/KrashStudio)!
|
69 |
|
70 | # 4.1.0
|
71 | * add `disabled` prop. [#83](https://github.com/formidablelabs/react-swipeable/pull/83)
|
72 | * add `innerRef` prop that allows user to access to `<Swipeable>`'s inner dom node react ref. [#82](https://github.com/formidablelabs/react-swipeable/pull/82)
|
73 |
|
74 | # 4.0.1
|
75 | * fixed bug where delta was causing a swipe to not be tracked correctly, #74 , thanks @mctep
|
76 |
|
77 | # 4.0.0
|
78 |
|
79 | * **Major Change** `preventDefaultTouchmoveEvent` defaults to `false` now [#69](https://github.com/formidablelabs/react-swipeable/issue/69)
|
80 | * This change is in part due to a [Chrome56+ change](https://github.com/formidablelabs/react-swipeable#chrome-56-and-later-warning-with-preventdefault)
|
81 | * **Major Change** drop support for React 12 & 13, `peerDependencies` updated [#64](https://github.com/formidablelabs/react-swipeable/pull/64)
|
82 | * `prop-types` added to `dependencies` [#64](https://github.com/formidablelabs/react-swipeable/pull/64)
|
83 | * **Major Change** `trackMouse` now 'tracks' the swipe outside of the swipeable component, [#67](https://github.com/formidablelabs/react-swipeable/pull/67).
|
84 | * Thanks for example [@TanaseHagi](https://github.com/TanaseHagi)
|
85 | * react 16 added to `peerDependencies`
|
86 |
|
87 | # 3.9.0
|
88 |
|
89 | * add `onTap` functionality. Thanks [@anicke](https://github.com/anicke) . [#61](https://github.com/formidablelabs/react-swipeable/pull/61) [#39](https://github.com/formidablelabs/react-swipeable/issues/39)
|
90 | * 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://stack.formidable.com/react-swipeable/.
|
91 |
|
92 | # 3.8.0
|
93 |
|
94 | * Allow `onMouseDown`, `onMouseUp`, and `onMouseMove` props to fire appropriately again. [#55](https://github.com/formidablelabs/react-swipeable/pull/55), thanks [@lochstar](https://github.com/lochstar)
|
95 | * Stop using this.state to track swipes, thanks [@grantila](https://github.com/grantila) for pointing out this change and submitting PR, [#58](https://github.com/formidablelabs/react-swipeable/pull/58). Should provide minor performance gains since `Swipeable` will no longer be calling `this.setState` internally.
|
96 |
|
97 | # 3.7.0
|
98 |
|
99 | * add ability to track mouse events as touch events. Thanks [@jakepusateri](https://github.com/jakepusateri) and [@Marcel-G](https://github.com/Marcel-G). [#51](https://github.com/formidablelabs/react-swipeable/issues/51)
|
100 |
|
101 | # 3.6.0
|
102 |
|
103 | * add stopPropagation prop for all swipe events, defaults to `false`. See [#46](https://github.com/formidablelabs/react-swipeable/issues/46) for more info.
|
104 |
|
105 | # 3.5.1
|
106 |
|
107 | * fix React 15.2.0 warning for unknown properties on DOM elements
|
108 |
|
109 | # 3.5.0
|
110 |
|
111 | * Add configurable container element via `nodeName` prop, defaults to `'div'`. See [#24](https://github.com/formidablelabs/react-swipeable/issues/24) and [#40](https://github.com/formidablelabs/react-swipeable/pull/40) for more info.
|
112 |
|
113 | # 3.4.0
|
114 |
|
115 | * Add preventDefault while swiping when props `onSwipedLeft`, `onSwipedRight`, `onSwipedUp`, and `onSwipedDown` are present. See [#21](https://github.com/formidablelabs/react-swipeable/issues/21) and [#37](https://github.com/formidablelabs/react-swipeable/pull/37) for more info.
|
116 |
|
117 | # 3.3.0
|
118 |
|
119 | * Adds `velocity` data to `onSwiping` callback
|
120 | * Updated the build process introducing ES2015 and babel
|
121 |
|
122 | # 3.2.0
|
123 |
|
124 | * Adds `preventDefaultTouchMoveEvent` option, defaults to true
|
125 |
|
126 | # 3.1.0
|
127 |
|
128 | * Adds `isFLick` to onSwipe events
|
129 | * Removes React as a peer dep
|
130 | * Adds onSwiping events
|
131 |
|
132 | # 3.0.2
|
133 |
|
134 | * Fixes onSwipeDown and onSwipeUp events
|
135 |
|
136 | # 3.0.1
|
137 |
|
138 | * Fixes vertical swiping
|
139 |
|
140 | # 3.0.0
|
141 |
|
142 | * Refactors build into jsx.
|
143 |
|
144 | # 2.1.0
|
145 |
|
146 | * Adds onSwipedUp, onSwipedRight, onSwipedDown, onSwipedLeft callbacks.
|
147 |
|
148 |
|
149 | # 2.0
|
150 |
|
151 | * `onFlick` prop has been removed.
|
152 |
|
153 | * `onSwipe` now has a 4th argument for the callback `Boolean isFlick`
|
154 |
|
155 | * Added a prop `flickThreshold` which allows you to customize at what velocity a flick is detected.
|