react-multi-carousel
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -141,7 +141,7 @@ "use strict"; | ||
if (activeItem.initialPosition - e.pageX > this.state.itemWidth / 2) { | ||
this.previous(); | ||
this.next(); | ||
this.setState({ activeItem: {} }); | ||
} | ||
if (e.pageX - activeItem.initialPosition > this.state.itemWidth / 2) { | ||
this.next(); | ||
this.previous(); | ||
this.setState({ activeItem: {} }); | ||
@@ -148,0 +148,0 @@ } |
{ | ||
"name": "react-multi-carousel", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet