react-carousel
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -69,3 +69,3 @@ 'use strict'; | ||
availableWidth = maxWidth; | ||
availableWidth = maxWidth + itemMargin; | ||
@@ -75,3 +75,3 @@ var prevButtonVisible = isPrevButtonVisible(firstVisibleIndex); | ||
if (prevButtonVisible) { | ||
availableWidth -= controlWidth + itemMargin; | ||
availableWidth -= controlWidth; | ||
} | ||
@@ -84,3 +84,3 @@ | ||
if (nextButtonVisible) { | ||
availableWidth -= controlWidth + itemMargin; | ||
availableWidth -= controlWidth; | ||
@@ -87,0 +87,0 @@ visibleItemCount = getMaximumAccomodableItemCount(availableWidth, itemWidth, itemMargin); |
@@ -41,3 +41,3 @@ { | ||
}, | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"dependencies": { | ||
@@ -44,0 +44,0 @@ "debounce": "^1.0.2", |
@@ -67,3 +67,3 @@ // @flow | ||
availableWidth = maxWidth; | ||
availableWidth = maxWidth + itemMargin; | ||
@@ -73,3 +73,3 @@ const prevButtonVisible = isPrevButtonVisible(firstVisibleIndex); | ||
if (prevButtonVisible) { | ||
availableWidth -= controlWidth + itemMargin; | ||
availableWidth -= controlWidth; | ||
} | ||
@@ -82,3 +82,3 @@ | ||
if (nextButtonVisible) { | ||
availableWidth -= controlWidth + itemMargin; | ||
availableWidth -= controlWidth; | ||
@@ -85,0 +85,0 @@ visibleItemCount = getMaximumAccomodableItemCount(availableWidth, itemWidth, itemMargin); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
47329