react-multi-carousel
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -128,7 +128,9 @@ "use strict"; | ||
if (this.itemRef.current.offsetWidth !== itemWidth) { | ||
this.setState({ | ||
itemWidth: this.itemRef.current.offsetWidth, | ||
transform: `translate3d(${-(this.itemRef.current.offsetWidth * this.state.currentSlide)}px,0,0)` | ||
}); | ||
this.setItemsToSlide(); | ||
setTimeout(() => { | ||
this.setState({ | ||
itemWidth: this.itemRef.current.offsetWidth, | ||
transform: `translate3d(${-(this.itemRef.current.offsetWidth * this.state.currentSlide)}px,0,0)` | ||
}); | ||
this.setItemsToSlide(); | ||
}, 500); | ||
} | ||
@@ -135,0 +137,0 @@ } |
{ | ||
"name": "react-multi-carousel", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "", | ||
@@ -71,3 +71,2 @@ "main": "index.js", | ||
"react": "^16.8.3", | ||
"react-docgen-typescript-loader": "^3.0.1", | ||
"react-dom": "^16.8.3", | ||
@@ -74,0 +73,0 @@ "storybook-addon-jsx": "^6.0.0", |
@@ -24,3 +24,3 @@ # react-multi-carousel | ||
Demo for the SSR are at [here](https://nextjs-h9168masa.now.sh) | ||
Demo for the SSR are at [here](https://nextjs-ek1wj6zxc.now.sh) | ||
@@ -27,0 +27,0 @@ ## Demo. |
Sorry, the diff of this file is not supported yet
29693
24
414