react-swipeable
Advanced tools
Comparing version 5.5.0 to 5.5.1
# 5.5.0 | ||
* Add `first` property to `eventData` that is `true` for first swipe event [issue #160](https://github.com/dogfessional/react-swipeable/issues/160) and [PR #162](https://github.com/dogfessional/react-swipeable/pull/162) | ||
* 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) | ||
* Thank you [@samanpwbb](https://github.com/samanpwbb)! | ||
# 5.4.0 | ||
* 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) | ||
* 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) | ||
# 5.3.0 | ||
* 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) | ||
* 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) | ||
* Thank you [@FaberVitale](https://github.com/FaberVitale)! | ||
# 5.2.3 | ||
* Add check for `event.cancelable` for `touchmove` events before calling `event.preventDefault()`, [issue #128](https://github.com/dogfessional/react-swipeable/issues/128) and [PR #145](https://github.com/dogfessional/react-swipeable/pull/145) | ||
* 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) | ||
* Thank you [@maurispalletti](https://github.com/maurispalletti)! | ||
# 5.2.2 | ||
* Fix typescript types for `ref`, [issue #140](https://github.com/dogfessional/react-swipeable/issues/140) and [PR #142](https://github.com/dogfessional/react-swipeable/pull/142) | ||
* 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) | ||
* Thank you [@mastermatt](https://github.com/mastermatt)! | ||
# 5.2.0 | ||
* Fix bug where callbacks/props were not refreshed for `useSwipeable` and `<Swipeable>`, [issue #136](https://github.com/dogfessional/react-swipeable/issues/136) and [PR #138](https://github.com/dogfessional/react-swipeable/pull/138) | ||
* 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) | ||
* Thank you [@caesarsol](https://github.com/caesarsol) and [@bas-l](https://github.com/bas-l)! | ||
* Add typescript types for `useSwipeable` and `<Swipeable>`, [issue #125](https://github.com/dogfessional/react-swipeable/issues/125) | ||
* Add typescript types for `useSwipeable` and `<Swipeable>`, [issue #125](https://github.com/formidablelabs/react-swipeable/issues/125) | ||
* Thank you [@adambowles](https://github.com/adambowles)! | ||
# 5.1.0 | ||
* 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) | ||
* 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) | ||
* Thank you [@JiiB](https://github.com/JiiB) and [@bhj](https://github.com/bhj)! | ||
* use `ref` callback for both `<Swipeable>` and `useSwipeable` to attach all touch event handlers | ||
* `useSwipeable`'s returned `handlers` now contains a ref callback | ||
* 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. | ||
* 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. | ||
* fix avoids the `passive: true` issue from chrome document event listeners | ||
@@ -59,3 +59,3 @@ * 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` | ||
# 4.3.0 | ||
* Add `rotationAngle` prop. [#103](https://github.com/dogfessional/react-swipeable/pull/103) | ||
* Add `rotationAngle` prop. [#103](https://github.com/formidablelabs/react-swipeable/pull/103) | ||
* 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. | ||
@@ -68,8 +68,8 @@ * Thank you [@Narquadah](https://github.com/Narquadah) and [@LarsKumbier](https://github.com/LarsKumbier)! | ||
# 4.2.0 | ||
* 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) | ||
* 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) | ||
* Thank you [@kl0tl](https://github.com/kl0tl) and [@KrashStudio](https://github.com/KrashStudio)! | ||
# 4.1.0 | ||
* add `disabled` prop. [#83](https://github.com/dogfessional/react-swipeable/pull/83) | ||
* 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) | ||
* add `disabled` prop. [#83](https://github.com/formidablelabs/react-swipeable/pull/83) | ||
* 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) | ||
@@ -81,7 +81,7 @@ # 4.0.1 | ||
* **Major Change** `preventDefaultTouchmoveEvent` defaults to `false` now [#69](https://github.com/dogfessional/react-swipeable/issue/69) | ||
* This change is in part due to a [Chrome56+ change](https://github.com/dogfessional/react-swipeable#chrome-56-and-later-warning-with-preventdefault) | ||
* **Major Change** drop support for React 12 & 13, `peerDependencies` updated [#64](https://github.com/dogfessional/react-swipeable/pull/64) | ||
* `prop-types` added to `dependencies` [#64](https://github.com/dogfessional/react-swipeable/pull/64) | ||
* **Major Change** `trackMouse` now 'tracks' the swipe outside of the swipeable component, [#67](https://github.com/dogfessional/react-swipeable/pull/67). | ||
* **Major Change** `preventDefaultTouchmoveEvent` defaults to `false` now [#69](https://github.com/formidablelabs/react-swipeable/issue/69) | ||
* This change is in part due to a [Chrome56+ change](https://github.com/formidablelabs/react-swipeable#chrome-56-and-later-warning-with-preventdefault) | ||
* **Major Change** drop support for React 12 & 13, `peerDependencies` updated [#64](https://github.com/formidablelabs/react-swipeable/pull/64) | ||
* `prop-types` added to `dependencies` [#64](https://github.com/formidablelabs/react-swipeable/pull/64) | ||
* **Major Change** `trackMouse` now 'tracks' the swipe outside of the swipeable component, [#67](https://github.com/formidablelabs/react-swipeable/pull/67). | ||
* Thanks for example [@TanaseHagi](https://github.com/TanaseHagi) | ||
@@ -92,17 +92,17 @@ * react 16 added to `peerDependencies` | ||
* 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) | ||
* 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/). | ||
* 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) | ||
* 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/. | ||
# 3.8.0 | ||
* 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) | ||
* 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. | ||
* 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) | ||
* 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. | ||
# 3.7.0 | ||
* 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) | ||
* 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) | ||
# 3.6.0 | ||
* add stopPropagation prop for all swipe events, defaults to `false`. See [#46](https://github.com/dogfessional/react-swipeable/issues/46) for more info. | ||
* add stopPropagation prop for all swipe events, defaults to `false`. See [#46](https://github.com/formidablelabs/react-swipeable/issues/46) for more info. | ||
@@ -115,7 +115,7 @@ # 3.5.1 | ||
* 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. | ||
* 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. | ||
# 3.4.0 | ||
* 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. | ||
* 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. | ||
@@ -122,0 +122,0 @@ # 3.3.0 |
{ | ||
"name": "react-swipeable", | ||
"version": "5.5.0", | ||
"version": "5.5.1", | ||
"description": "React Swipe event handler component & hook", | ||
@@ -54,8 +54,8 @@ "main": "./lib/index.js", | ||
"type": "git", | ||
"url": "http://github.com/dogfessional/react-swipeable.git" | ||
"url": "https://github.com/FormidableLabs/react-swipeable.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/dogfessional/react-swipeable/issues" | ||
"url": "https://github.com/FormidableLabs/react-swipeable/issues" | ||
}, | ||
"homepage": "https://github.com/dogfessional/react-swipeable", | ||
"homepage": "https://github.com/FormidableLabs/react-swipeable", | ||
"files": [ | ||
@@ -62,0 +62,0 @@ "lib", |
@@ -6,7 +6,7 @@ React Swipeable | ||
[![build status](https://img.shields.io/travis/dogfessional/react-swipeable/master.svg?style=flat-square)](https://travis-ci.org/dogfessional/react-swipeable) [![Coverage Status](https://img.shields.io/coveralls/dogfessional/react-swipeable/master.svg?style=flat-square)](https://coveralls.io/github/dogfessional/react-swipeable?branch=master) [![npm version](https://img.shields.io/npm/v/react-swipeable.svg?style=flat-square)](https://www.npmjs.com/package/react-swipeable) [![npm downloads](https://img.shields.io/npm/dm/react-swipeable.svg?style=flat-square)](https://www.npmjs.com/package/react-swipeable) [![gzip size](https://flat.badgen.net/bundlephobia/minzip/react-swipeable)](https://bundlephobia.com/result?p=react-swipeable) | ||
[![build status](https://img.shields.io/travis/FormidableLabs/react-swipeable/master.svg?style=flat-square)](https://travis-ci.org/FormidableLabs/react-swipeable) [![Coverage Status](https://img.shields.io/coveralls/FormidableLabs/react-swipeable/master.svg?style=flat-square)](https://coveralls.io/github/FormidableLabs/react-swipeable?branch=master) [![npm version](https://img.shields.io/npm/v/react-swipeable.svg?style=flat-square)](https://www.npmjs.com/package/react-swipeable) [![npm downloads](https://img.shields.io/npm/dm/react-swipeable.svg?style=flat-square)](https://www.npmjs.com/package/react-swipeable) [![gzip size](https://flat.badgen.net/bundlephobia/minzip/react-swipeable)](https://bundlephobia.com/result?p=react-swipeable) | ||
[![Edit react-swipeable image carousel with hook](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/lrk6955l79?module=%2Fsrc%2FCarousel.js) | ||
[Github Pages Demo](https://dogfessional.github.io/react-swipeable/) | ||
[Github Pages Demo](http://stack.formidable.com/react-swipeable/) | ||
@@ -93,3 +93,3 @@ ### Api | ||
- Please spread `handlers` as the props contained in it could change as react improves event listening capabilities | ||
- See [#127](https://github.com/dogfessional/react-swipeable/issues/127) for some more context | ||
- See [#127](https://github.com/FormidableLabs/react-swipeable/issues/127) for some more context | ||
@@ -107,3 +107,3 @@ ### preventDefaultTouchmoveEvent Details | ||
Please experiment with the [example](http://dogfessional.github.io/react-swipeable/) to test `preventDefaultTouchmoveEvent`. | ||
Please experiment with the [example](http://stack.formidable.com/react-swipeable/) to test `preventDefaultTouchmoveEvent`. | ||
@@ -110,0 +110,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77385