1 | # 5.0.0
|
2 | * Introduce react hook, `useSwipeable`
|
3 | * Core rewrite to simplify api and trim down bundled size
|
4 | * Add `size-limit` to help keep bundled size down
|
5 | * Add `es` export via `"module": "es/index.js"` to `package.json`
|
6 | * Add `prettier` code formating
|
7 | * **[BREAKING]** simplify handler event data to allow destructuring
|
8 | * `onSwiped = ({ event, direction, absX, absY, velocity}) => console.log('swiped')`
|
9 | * **[BREAKING]** deprecated `onSwiping{Left|Right|Up|Down}` handler props
|
10 | * can be replaced with direction/`dir` event data
|
11 | * `` onSwiping = ({ dir }) => console.log(`swiping - ${dir}`) ``
|
12 | * **[BREAKING]** deprecated props
|
13 | * `flickThreshold`
|
14 | * `stopPropagation`
|
15 | * `disabled`
|
16 |
|
17 |
|
18 |
|
19 | # 4.3.0
|
20 | * Add `rotationAngle` prop. [#103](https://github.com/dogfessional/react-swipeable/pull/103)
|
21 | * 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.
|
22 | * Thank you [@Narquadah](https://github.com/Narquadah) and [@LarsKumbier](https://github.com/LarsKumbier)!
|
23 |
|
24 | # 4.2.2
|
25 | * fixed bug that happened when if either `onSwiping` or `onSwiped` were set we were not calling `e.preventDefault()` appropriately
|
26 |
|
27 | # 4.2.0
|
28 | * Add support for calling `preventDefault` on Chrome 56+ via passive event support checking and manual event listener setup. [#88](https://github.com/dogfessional/react-swipeable/pull/88)
|
29 | * Thank you [@kl0tl](https://github.com/kl0tl) and [@KrashStudio](https://github.com/KrashStudio)!
|
30 |
|
31 | # 4.1.0
|
32 | * add `disabled` prop. [#83](https://github.com/dogfessional/react-swipeable/pull/83)
|
33 | * add `innerRef` prop that allows user to access to `<Swipeable>`'s inner dom node react ref. [#82](https://github.com/dogfessional/react-swipeable/pull/82)
|
34 |
|
35 | # 4.0.1
|
36 | * fixed bug where delta was causing a swipe to not be tracked correctly, #74 , thanks @mctep
|
37 |
|
38 | # 4.0.0
|
39 |
|
40 | * **Major Change** `preventDefaultTouchmoveEvent` defaults to `false` now [#69](https://github.com/dogfessional/react-swipeable/issue/69)
|
41 | * This change is in part due to a [Chrome56+ change](https://github.com/dogfessional/react-swipeable#chrome-56-and-later-warning-with-preventdefault)
|
42 | * **Major Change** drop support for React 12 & 13, `peerDependencies` updated [#64](https://github.com/dogfessional/react-swipeable/pull/64)
|
43 | * `prop-types` added to `dependencies` [#64](https://github.com/dogfessional/react-swipeable/pull/64)
|
44 | * **Major Change** `trackMouse` now 'tracks' the swipe outside of the swipeable component, [#67](https://github.com/dogfessional/react-swipeable/pull/67).
|
45 | * Thanks for example [@TanaseHagi](https://github.com/TanaseHagi)
|
46 | * react 16 added to `peerDependencies`
|
47 |
|
48 | # 3.9.0
|
49 |
|
50 | * add `onTap` functionality. Thanks [@anicke](https://github.com/anicke) . [#61](https://github.com/dogfessional/react-swipeable/pull/61) [#39](https://github.com/dogfessional/react-swipeable/issues/39)
|
51 | * 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://dogfessional.github.io/react-swipeable/).
|
52 |
|
53 | # 3.8.0
|
54 |
|
55 | * Allow `onMouseDown`, `onMouseUp`, and `onMouseMove` props to fire appropriately again. [#55](https://github.com/dogfessional/react-swipeable/pull/55), thanks [@lochstar](https://github.com/lochstar)
|
56 | * 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/dogfessional/react-swipeable/pull/58). Should provide minor performance gains since `Swipeable` will no longer be calling `this.setState` internally.
|
57 |
|
58 | # 3.7.0
|
59 |
|
60 | * 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/dogfessional/react-swipeable/issues/51)
|
61 |
|
62 | # 3.6.0
|
63 |
|
64 | * add stopPropagation prop for all swipe events, defaults to `false`. See [#46](https://github.com/dogfessional/react-swipeable/issues/46) for more info.
|
65 |
|
66 | # 3.5.1
|
67 |
|
68 | * fix React 15.2.0 warning for unknown properties on DOM elements
|
69 |
|
70 | # 3.5.0
|
71 |
|
72 | * Add configurable container element via `nodeName` prop, defaults to `'div'`. See [#24](https://github.com/dogfessional/react-swipeable/issues/24) and [#40](https://github.com/dogfessional/react-swipeable/pull/40) for more info.
|
73 |
|
74 | # 3.4.0
|
75 |
|
76 | * Add preventDefault while swiping when props `onSwipedLeft`, `onSwipedRight`, `onSwipedUp`, and `onSwipedDown` are present. See [#21](https://github.com/dogfessional/react-swipeable/issues/21) and [#37](https://github.com/dogfessional/react-swipeable/pull/37) for more info.
|
77 |
|
78 | # 3.3.0
|
79 |
|
80 | * Adds `velocity` data to `onSwiping` callback
|
81 | * Updated the build process introducing ES2015 and babel
|
82 |
|
83 | # 3.2.0
|
84 |
|
85 | * Adds `preventDefaultTouchMoveEvent` option, defaults to true
|
86 |
|
87 | # 3.1.0
|
88 |
|
89 | * Adds `isFLick` to onSwipe events
|
90 | * Removes React as a peer dep
|
91 | * Adds onSwiping events
|
92 |
|
93 | # 3.0.2
|
94 |
|
95 | * Fixes onSwipeDown and onSwipeUp events
|
96 |
|
97 | # 3.0.1
|
98 |
|
99 | * Fixes vertical swiping
|
100 |
|
101 | # 3.0.0
|
102 |
|
103 | * Refactors build into jsx.
|
104 |
|
105 | # 2.1.0
|
106 |
|
107 | * Adds onSwipedUp, onSwipedRight, onSwipedDown, onSwipedLeft callbacks.
|
108 |
|
109 |
|
110 | # 2.0
|
111 |
|
112 | * `onFlick` prop has been removed.
|
113 |
|
114 | * `onSwipe` now has a 4th argument for the callback `Boolean isFlick`
|
115 |
|
116 | * Added a prop `flickThreshold` which allows you to customize at what velocity a flick is detected.
|