@momo-kits/carousel 0.81.34 → 0.81.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.tsx +1 -1
- package/package.json +2 -2
package/index.tsx
CHANGED
|
@@ -574,7 +574,7 @@ export default class Carousel extends React.PureComponent<
|
|
|
574
574
|
const containerWidth = event.nativeEvent.layout.width;
|
|
575
575
|
let itemWidth =
|
|
576
576
|
this.props.visibleItem === 1
|
|
577
|
-
?
|
|
577
|
+
? screenWidth - Spacing.M * 2
|
|
578
578
|
: Math.ceil(
|
|
579
579
|
scaleSize(
|
|
580
580
|
(containerWidth * 0.9 - visibleItem * Spacing.S) / visibleItem,
|
package/package.json
CHANGED