react-responsive-carousel
Advanced tools
Comparing version 3.1.29 to 3.1.30
# React Responsive Carousel | ||
## 3.1.28 - Sat Oct 21 2017 | ||
## 3.1.29 - Thu Nov 30 2017 | ||
* feat: add verticalSwipe property to deal with mobile vertical swipping. | ||
This commit aims to fix [issue 198](https://github.com/leandrowd/react-responsive-carousel/issues/198). | ||
* issue #191: Add alternative to codepen | ||
* Revert "Automating gh-pages publishing" | ||
This reverts commit 3dfb04ff2f69200c7f68ae060e5945d7fc3deaf9. | ||
* Automating gh-pages publishing | ||
## 3.1.28 - Fri Oct 20 2017 | ||
* Add centerSlidePercentage | ||
@@ -35,3 +46,3 @@ * Fix last centered slide position calculation | ||
## 3.1.24 - Wed Jul 05 2017 | ||
## 3.1.24 - Tue Jul 04 2017 | ||
* #148 Autoplay and stop on hover causes a warning. | ||
@@ -92,7 +103,5 @@ - Added tests for the internal state isMouseEntered and tests for enabeling and disabeling the auto play function on mouse enter / leave. | ||
## 3.1.14 - Sat Apr 29 2017 | ||
* #112: Fix emulateTouch | ||
## 3.1.13 - Sat Apr 29 2017 | ||
* #112: Fix auto play | ||
@@ -106,3 +115,3 @@ | ||
## 3.1.10 - Tue Apr 25 2017 | ||
## 3.1.10 - Mon Apr 24 2017 | ||
@@ -116,3 +125,3 @@ | ||
## 3.1.7 - Mon Apr 24 2017 | ||
## 3.1.7 - Sun Apr 23 2017 | ||
@@ -153,3 +162,3 @@ | ||
## 3.0.19 - Sat Sep 24 2016 | ||
## 3.0.19 - Fri Sep 23 2016 | ||
@@ -172,3 +181,3 @@ | ||
## 3.0.13 - Sun Aug 28 2016 | ||
## 3.0.13 - Sat Aug 27 2016 | ||
@@ -179,3 +188,3 @@ | ||
## 3.0.11 - Fri Apr 15 2016 | ||
## 3.0.11 - Thu Apr 14 2016 | ||
@@ -192,3 +201,3 @@ | ||
## 3.0.7 - Sat Jan 16 2016 | ||
## 3.0.7 - Fri Jan 15 2016 | ||
@@ -202,6 +211,6 @@ | ||
## 3.0.4 - Fri Jan 08 2016 | ||
## 3.0.4 - Thu Jan 07 2016 | ||
## 3.0.3 - Fri Jan 08 2016 | ||
## 3.0.3 - Thu Jan 07 2016 | ||
@@ -278,2 +287,2 @@ | ||
## 0.0.1 - Mon Feb 09 2015 | ||
## 0.0.1 - Sun Feb 08 2015 |
@@ -105,9 +105,15 @@ 'use strict'; | ||
var isHorizontal = axis === 'horizontal'; | ||
var keyNames = { | ||
ArrowUp: 38, | ||
ArrowRight: 39, | ||
ArrowDown: 40, | ||
ArrowLeft: 37 | ||
}; | ||
var nextKey = isHorizontal ? 'ArrowRight' : 'ArrowDown'; | ||
var prevKey = isHorizontal ? 'ArrowLeft' : 'ArrowUp'; | ||
var nextKey = isHorizontal ? keyNames.ArrowRight : keyNames.ArrowDown; | ||
var prevKey = isHorizontal ? keyNames.ArrowLeft : keyNames.ArrowUp; | ||
if (nextKey === e.key) { | ||
if (nextKey === e.keyCode) { | ||
_this.increment(); | ||
} else if (prevKey === e.key) { | ||
} else if (prevKey === e.keyCode) { | ||
_this.decrement(); | ||
@@ -114,0 +120,0 @@ } |
{ | ||
"name": "react-responsive-carousel", | ||
"version": "3.1.29", | ||
"version": "3.1.30", | ||
"description": "React Responsive Carousel", | ||
@@ -5,0 +5,0 @@ "author": { |
931163
1458